def update_statement_graphs(template, output_graph, context):
    for s in template.statement_graphs:
        statement_nodes = s.statement_node
        new_graph = output_graph.statement_graphs.add()
        nodes = []
        for n in statement_nodes:
            nodes.append((context + n))
        new_graph.statement_node.extend(nodes)
def update_statement_graphs(template, output_graph, context):
    for s in template.statement_graphs:
        statement_nodes = s.statement_node
        new_graph = output_graph.statement_graphs.add()
        nodes = []
        for n in statement_nodes:
            nodes.append((context + n))
        new_graph.statement_node.extend(nodes)