code: def summarizeFailedRuns():
      """
      This function will look at the local directory and pick out files that have the correct start name and
      summarize the results into one giant dict.
  
      :return: None
      """
      global g_summary_dict_all
  
      onlyFiles = [
          x
          for x in listdir(g_test_root_dir)
          if isfile(join(g_test_root_dir, x))
      ]  # grab files
  
      for f in onlyFiles:
          for fileStart in g_file_start:
              if (fileStart in f) and (
                  os.path.getsize(f) > 10
              ):  # found the file containing failed tests
                  fFullPath = os.path.join(g_test_root_dir, f)
                  try:
                      temp_dict = json.load(open(fFullPath, "r"))
  
                      # scrape through temp_dict and see if we need to add the test to intermittents
                      for ind in range(len(temp_dict["TestName"])):
                          addFailedTests(
                              g_summary_dict_all, temp_dict, ind
                          )
                  except:
                      continue
                  break
  
file_path: h2o-3/scripts/summarizeIntermittens.py
imports: import sys
  import os
  from os import listdir
  from os.path import isfile, join
  import time
  import json
  import datetime
  from pytz import timezone
  from dateutil import parser
label_desc: Use image node_id 3 for calling a global function with example usage: summarizeFailedRuns() without return types