code: def dump_ast(ast, indent=" ", newline="\n"):
      """
  
      Returns a string representing the ast.
  
      :param ast: the ast to print.
      :param indent: how far to indent a newline.
      :param newline: The newline character.
  
      """
  
      visitor = ASTPrinter(indent=indent, level=0, newline=newline)
      visitor.visit(ast)
      return visitor.dumps()
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ...asttools import Visitor
  import sys
  import _ast
  from warnings import warn
label_desc: Use image node_id 6 for calling a global function with example usage: dump_ast(ast, indent, newline) and returns: visitor