code: def run_benchmark(executable, ex_args, output_dir):
      result_file_path = os.path.join(
          output_dir, get_default_result_filename(executable)
      )
  
      result_dir = os.path.dirname(result_file_path)
      os.makedirs(result_dir, exist_ok=True)
      print("result_file_path , ", result_file_path)
      with open(result_file_path, "w") as output_file:
          print("Writing to", result_file_path)
  
          for args in ex_args:
              if args:
                  command = [executable, str(args)]
              else:
                  command = executable
              result = run(
                  command,
                  stdout=PIPE,
                  stderr=PIPE,
                  universal_newlines=True,
              )
  
              output_file.write(result.stdout)
  
              if result.stderr:
                  print("Failed", result.stderr)
  
          output_file.flush()
      print(executable, "Done")
  
      return result_dir
  
file_path: tick/tools/benchmark/benchmark_util.py
imports: import datetime
  import os
  from subprocess import PIPE, run
  from tick.array.serialize import serialize_array
  from tick.dataset import fetch_tick_dataset
  from tick.dataset.fetch_url_dataset import fetch_url_dataset
label_desc: Use image node_id 6 for calling a global function with example usage: run_benchmark(executable, ex_args, output_dir) and returns: result_dir