code: def report_failure(e):
      explanation = e.node.nice_explanation()
      if explanation:
          explanation = ", in: " + explanation
      else:
          explanation = ""
      sys.stdout.write(
          "%s: %s%s\n" % (e.exc.__name__, e.value, explanation)
      )
  
imports: import py
  import sys, inspect
  from compiler import parse, ast, pycodegen
  from py._code.assertion import BuiltinAssertionError, _format_explanation
  import types
label_desc: Use image node_id 2 for calling a global function with example usage: report_failure(e) without return types