def METHOD_NAME(node, expected_dump, expected_code):
    dump_result = node.dump()
    assert dump_result == expected_dump
    # Check that dumped tree can be eval'd to recover the parser tree and original code.
    recovered_code = eval(dump_result).get_code()
    assert recovered_code == expected_code