code: def getfailure(e):
      explanation = e.node.nice_explanation()
      if str(e.value):
          lines = explanation.split("\n")
          lines[0] += "  << %s" % (e.value,)
          explanation = "\n".join(lines)
      text = "%s: %s" % (e.exc.__name__, explanation)
      if text.startswith("AssertionError: assert "):
          text = text[16:]
      return text
  
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 6 for calling a global function with example usage: getfailure(e) and returns: text