def execute(context=None, inputs=None, config=None):
    """
    数据处理节点
    对输入数据进行处理和转换
    """
    try:
        data = inputs.get('data', [])
        if not data:
            return {"success": False, "error": "没有提供数据"}
        
        # 数据处理逻辑
        processed_data = []
        for item in data:
            if isinstance(item, dict):
                # 添加处理时间戳
                item['processed_at'] = context.get('timestamp', 'unknown')
                # 添加处理节点信息
                item['processed_by'] = 'data_processing_node'
                processed_data.append(item)
            else:
                # 简单数据类型处理
                processed_data.append({
                    'original_value': item,
                    'processed_at': context.get('timestamp', 'unknown'),
                    'processed_by': 'data_processing_node'
                })
        
        return {
            "success": True,
            "processed_data": processed_data,
            "summary": {
                "total_items": len(data),
                "processed_items": len(processed_data),
                "processing_time": 0.1
            }
        }
        
    except Exception as e:
        return {
            "success": False,
            "error": str(e),
            "error_type": type(e).__name__
        }
