def print_alignment(mapping, instance1, instance2):
result = []<EOL>for instance1_item, m in zip(instance1, mapping):<EOL><INDENT>r = instance1_item[<NUM_LIT:1>] + "<STR_LIT:(>" + instance1_item[<NUM_LIT:2>] + "<STR_LIT:)>"<EOL>if m == -<NUM_LIT:1>:<EOL><INDENT>r += "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>instance2_item = instance2[m]<EOL>r += "<STR_LIT:->" + instance2_item[<NUM_LIT:1>] + "<STR_LIT:(>" + instance2_item[<NUM_LIT:2>] + "<STR_LIT:)>"<EOL><DEDENT>result.append(r)<EOL><DEDENT>return "<STR_LIT:U+0020>".join(result)<EOL>
print the alignment based on a node mapping
Args:
    mapping: current node mapping list
    instance1: nodes of AMR 1
    instance2: nodes of AMR 2