code: def main(argv):
      """
      Main program.  Expect script name plus  inputs in the following order:
      - This script name
      1. threshold: integer that will denote when a failed test will be declared an intermittent
      2. string denote filename of where our final dict structure will be stored.
      3. string that denote the beginning of a file containing failed tests info.
      4. Optional strings that denote the beginning of a file containing failed tests info.
  
      @return: none
      """
      global g_script_name
      global g_test_root_dir
      global g_threshold_failure
      global g_file_start
      global g_summary_dict_name
      global g_summary_dict_all
      global g_summary_dict_intermittents
      global g_summary_csv_filename
  
      if len(argv) < 5:
          print("Wrong call.  Not enough arguments.\n")
          usage()
          sys.exit(1)
      else:  # we may be in business
          g_threshold_failure = int(argv[1])
          g_summary_dict_name = os.path.join(g_test_root_dir, argv[2])
          g_summary_csv_filename = g_summary_dict_name + ".csv"
  
          for ind in range(3, len(argv)):
              g_file_start.append(argv[ind])
  
          init_intermittents_dict(g_summary_dict_all)
          init_intermittents_dict(g_summary_dict_intermittents)
          summarizeFailedRuns()
          extractPrintSaveIntermittens()
  
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 7 for calling a global function with example usage: main(argv) without return types