code: def makeFailureElement(outputLines):
      e = Element("failure", message="failed")
      e.text = "".join(
          filter(lambda c: c in string.printable, outputLines)
      )
      return e
  
file_path: cugraph/ci/utils/nbtestlog2junitxml.py
imports: import re
  from xml.etree.ElementTree import Element, ElementTree
  from os import path
  import string
  from enum import Enum
label_desc: Use image node_id 4 for calling a global function with example usage: makeFailureElement(outputLines) and returns: e