def METHOD_NAME(pipeline_tree: dict):
    """pipeline_tree需要在unfold_subprocess之后才可递归处理"""
    for act_id, act in pipeline_tree[PE.activities].items():
        act["template_node_id"] = act.get("template_node_id") or act_id
        if act[PE.type] == PE.SubProcess:
            if "pipeline_tree" in act:
                METHOD_NAME(act["pipeline_tree"])
            if "pipeline" in act:
                METHOD_NAME(act["pipeline"])