code: def update_failed_test_info_dict(failed_testname, failed_test_path):
      """
      Update the dictionary structure that stores failed unit test information.
  
      :param failed_testname: string containing name of failed test.
      :param failed_test_path: string containing the path to failed test url.
      :return: None
      """
      global g_failed_tests_info_dict
  
      if (
          failed_testname in g_failed_tests_info_dict["TestName"]
      ):  # existing test
          g_failed_tests_info_dict["TestInfo"][
              g_failed_tests_info_dict["TestName"].index(
                  failed_testname
              )
          ] = init_update_each_failed_test_dict(
              g_failed_tests_info_dict["TestInfo"][
                  g_failed_tests_info_dict["TestName"].index(
                      failed_testname
                  )
              ],
              failed_test_path,
              failed_testname,
              False,
          )
      else:  # next test
          g_failed_tests_info_dict["TestName"].append(failed_testname)
          g_failed_tests_info_dict["TestInfo"].append(
              init_update_each_failed_test_dict(
                  dict(), failed_test_path, failed_testname, True
              )
          )
  
file_path: h2o-3/scripts/scrapeForIntermittents.py
imports: import sys
  import os
  import json
  import subprocess
  import time
  import datetime
  from pytz import timezone
  from dateutil import parser
label_desc: Use image node_id 7 for calling a global function with example usage: update_failed_test_info_dict(failed_testname, failed_test_path) without return types