def DumpNodeToString(node):
 if isinstance(node, pytree.Leaf):
  fmt = '{name}({value}) [lineno={lineno}, column={column}, prefix={prefix}]'
  return fmt.format(name=NodeName(node), value=_PytreeNodeRepr(node), lineno=node.lineno, column=node.column, prefix=repr(node.prefix))
 else:
  fmt = '{node} [{len} children] [child_indent="{indent}"]'
  return fmt.format(node=NodeName(node), len=len(node.children), indent=GetNodeAnnotation(node, Annotation.CHILD_INDENT))

def DumpNodeToString ( node ) : if isinstance ( node , pytree . Leaf ) : fmt = '{name}({value}) [lineno={lineno}, column={column}, prefix={prefix}]' return fmt . format ( name = NodeName ( node ) , value = _PytreeNodeRepr ( node ) , lineno = node . lineno , column = node . column , prefix = repr ( node . prefix ) ) else : fmt = '{node} [{len} children] [child_indent="{indent}"]' return fmt . format ( node = NodeName ( node ) , len = len ( node . children ) , indent = GetNodeAnnotation ( node , Annotation . CHILD_INDENT ) )
dump a string representation of the given node .