def METHOD_NAME(node):
    if node.kind() == 'prim::FusionGroup':
        return add_fusion_group(node)
    elif node.kind() == 'prim::GraphExecutor':
        return add_graph_executor(node)
    op, name = name_for(node)
    pb_node = pb_graph.node.add(op=op, name=name)
    for value in node.inputs():
        pb_node.input.append(value_map[value.unique()])
    # TODO: handle attrs
    for i, value in enumerate(node.outputs()):
        value_map[value.unique()] = name + ':' + str(i)