def METHOD_NAME(node):
    if isinstance(node, Leaf):
        return "%s(%r, %r)" % (number2name[node.type],
                               node.prefix, node.value)
    else:
        return "%s(%s)" % (number2name[node.type],
                           ', '.join(map(METHOD_NAME, node.children)))