code: def updateFailedTestInfo(
      summary_dict, one_test_info, testIndex, testName, newTest
  ):
      """
      For each test, a dictionary structure will be built to record the various info about that test's failure
      information.  In particular, for each failed tests, there will be a dictionary associated with that test
      stored in the field "TestInfo" of g_faiiled_tests_info_dict.  The following fields are included:
          "JenkinsJobName": job name
          "BuildID"
          "Timestamp": in seconds
          "GitHash"
          "TestCategory": JUnit, PyUnit, RUnit or HadoopPyUnit, HadoopRUnit
          "NodeName": name of machine that the job was run on
          "FailureCount": integer counting number of times this particular test has failed.  An intermittent can be
            determined as any test with FailureCount >= 2.
          "FailureMessages": contains failure messages for the test
      :return: a new dict for that test
      """
      if newTest:  # setup the dict structure to store the new data
          summary_dict["TestInfo"].append(dict())
          summary_dict["TestInfo"][testIndex]["JenkinsJobName"] = []
          summary_dict["TestInfo"][testIndex]["BuildID"] = []
          summary_dict["TestInfo"][testIndex]["Timestamp"] = []
          summary_dict["TestInfo"][testIndex]["GitHash"] = []
          summary_dict["TestInfo"][testIndex]["TestCategory"] = []
          summary_dict["TestInfo"][testIndex]["NodeName"] = []
          summary_dict["TestInfo"][testIndex]["FailureCount"] = 0
          summary_dict["TestInfo"][testIndex][
              "TestName"
          ] = testName  # add test name
          summary_dict["TestInfo"][testIndex][
              "FailureMessages"
          ] = []  # contains failure messages for the test
  
      summary_dict["TestInfo"][testIndex]["JenkinsJobName"].extend(
          one_test_info["JenkinsJobName"]
      )
      summary_dict["TestInfo"][testIndex]["BuildID"].extend(
          one_test_info["BuildID"]
      )
      summary_dict["TestInfo"][testIndex]["Timestamp"].extend(
          one_test_info["Timestamp"]
      )
      summary_dict["TestInfo"][testIndex]["GitHash"].extend(
          one_test_info["GitHash"]
      )
      summary_dict["TestInfo"][testIndex]["TestCategory"].extend(
          one_test_info["TestCategory"]
      )
      summary_dict["TestInfo"][testIndex]["NodeName"].extend(
          one_test_info["NodeName"]
      )
      summary_dict["TestInfo"][testIndex]["FailureMessages"].extend(
          one_test_info["FailureMessages"]
      )
      summary_dict["TestInfo"][testIndex][
          "FailureCount"
      ] += one_test_info["FailureCount"]
  
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 5 for calling a global function with example usage: updateFailedTestInfo(summary_dict, one_test_info, testIndex, testName, newTest) without return types