code: def is_failure(testcase):
      def condition(children):
          for child in children:
              if child.tag != "failure":
                  continue
              is_unexpected_success = (
                  "unexpected success"
                  in child.attrib["message"].lower()
              )
              if not is_unexpected_success:
                  return True
          return False
  
      return find(testcase, condition)
  
file_path: pytorch/scripts/compile_tests/common.py
imports: import os
  import xml.etree.ElementTree
label_desc: Use image node_id 11 for calling a global function with example usage: is_failure(testcase) and returns: find, False, True