def DumpPyTree(tree, target_stream=sys.stdout):
 dumper = PyTreeDumper(target_stream)
 dumper.Visit(tree)

def DumpPyTree ( tree , target_stream = sys . stdout ) : dumper = PyTreeDumper ( target_stream ) dumper . Visit ( tree )
convenience function for dumping a given pytree .