code: def getfailure(failure):
      explanation = _format_explanation(failure.explanation)
      value = failure.cause[1]
      if str(value):
          lines = explanation.splitlines()
          if not lines:
              lines.append("")
          lines[0] += " << %s" % (value,)
          explanation = "\n".join(lines)
      text = "%s: %s" % (failure.cause[0].__name__, explanation)
      if text.startswith("AssertionError: assert "):
          text = text[16:]
      return text
  
imports: import sys
  import ast
  import py
  from py._code.assertion import _format_explanation, BuiltinAssertionError
label_desc: Use image node_id 5 for calling a global function with example usage: getfailure(failure) and returns: text