code: def run_script(args):
      try:
          result = subprocess.run(
              args,
              cwd=os.getenv("H2O_HOME"),
              stdout=PIPE,
              stderr=STDOUT,
              check=True,
              universal_newlines=True,
          )
          print(args[0] + " script output:")
          print("--------------------")
          print(result.stdout)
          print("--------------------")
      except CalledProcessError as err:
          print(args[0] + " script failed:")
          print("--------------------")
          print(err.stdout)
          print("--------------------")
  
file_path: h2o-3/h2o-hadoop-common/tests_fault_tolerance/python/fault_tolerance_utils.py
imports: import os
  import subprocess
  from subprocess import PIPE, STDOUT, CalledProcessError
label_desc: Use image node_id 6 for calling a global function with example usage: run_script(args) without return types