code: def update_test_dict(each_line):
      """
      Extract unit tests information from the jenkins job console output.  It will save this
      information in g_failed_jobs list and setup a place holder for saving the bad java
      messages/message types in g_failed_job_java_messages, g_failed_job_java_message_types.
  
      Parameters
      ----------
  
      each_line :  str
          contains a line read in from jenkins console
  
      :return: bool to determine if text mining should continue on the jenkins console text
      """
      global g_ignore_test_names
      global g_failed_jobs
      global g_failed_job_java_messages
      global g_failure_occurred
  
      temp_strings = each_line.split()
  
      if (
          (len(temp_strings) >= 5)
          and ("FAIL" in each_line)
          and ("FAILURE" not in each_line)
      ):  # found failed test
          test_name = temp_strings[-2]
          g_failed_jobs.append(test_name)
          g_failed_job_java_messages.append(
              []
          )  # insert empty java messages for now
          g_failed_job_java_message_types.append([])
          g_failure_occurred = True
  
      return True
  
imports: import sys
  import os
  import json
  import pickle
  import copy
  import subprocess
label_desc: Use image node_id 10 for calling a global function with example usage: update_test_dict(each_line) and returns: True