code: def parse_verify_out_str(content):
      total_failed_cases = 0
  
      case_list = re.findall(
          r"result:[\s\S]*?Failed Test Cases:[^\n]*\n", content
      )
      for case_str in case_list:
          total_failed_cases += parse_single_result_case(case_str)
  
      if total_failed_cases:
          print(
              "ERROR: onnx_test_runner produced "
              + str(total_failed_cases)
              + " failed cases.",
              file=sys.stderr,
          )
          sys.exit(1)
  
      return total_failed_cases
  
file_path: CNTK/bindings/python/cntk/tests/onnx_verify_helper.py
imports: from __future__ import print_function
  import os, re, sys, subprocess, scipy, pytest, numpy
  import cntk
label_desc: Use image node_id 2 for calling a global function with example usage: parse_verify_out_str(content) and returns: total_failed_cases