code: def main(argv):
      """
      Main program.  Take user input, parse it and call other functions to execute the commands
      and extract run summary and store run result in json file
  
      @return: none
      """
      global g_test_root_dir
      global g_temp_filename
  
      if len(argv) < 3:
          print(
              "invoke this script as python collectUnitTestRunTime.py 10 'python run.py_path/run.py --wipe "
              "--test dir_to_test/test1,python run.py_path/run.py --wipe --test dir_to_test2/test2,...' True\n"
          )
          sys.exit(1)
      else:  # we may be in business
          repeat_number = int(
              argv[1]
          )  # number of times to run a unit test
          command_lists = argv[2]  # list of unit tests to run
  
          if argv[3] == "True":
              is_new_run = True
          else:
              is_new_run = (
                  False  # brand new run or need to add onto old results
              )
  
          for command in command_lists.split(
              ","
          ):  # for each command in the list
              # run command repeat_number of times and collect results into result_dict
              result_dict = run_commands(
                  command, repeat_number, g_temp_filename
              )
  
              # generate max/min/mean/std and write result into json file
              write_result_summary(
                  result_dict, g_test_root_dir, is_new_run
              )
  
file_path: h2o-3/scripts/collectUnitTestRunTime.py
imports: import sys
  import os
  import json
  import subprocess
  import time
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: main(argv) without return types