code: def print_ast(
      ast, indent=" ", initlevel=0, newline="\n", file=sys.stdout
  ):
      """
      Pretty print an ast node.
  
      :param ast: the ast to print.
      :param indent: how far to indent a newline.
      :param initlevel: starting indent level
      :param newline: The newline character.
      :param file: file object to print to
  
      To print a short ast you may want to use::
  
          node = ast.parse(source)
          print_ast(node, indent='', newline='')
  
      """
  
      visitor = ASTPrinter(
          indent=indent, level=initlevel, newline=newline
      )
      visitor.visit(ast)
      visitor.dump(file=file)
  
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 7 for calling a global function with example usage: print_ast(ast, indent, initlevel, newline, file) without return types