code: def run_gpt(cmd):
      args = list(cmd.split(" "))
      p = subprocess.Popen(
          args, stdout=subprocess.PIPE, stderr=subprocess.PIPE
      )
      outs, errs = p.communicate()
      outs = list(str((outs).decode("utf-8")).splitlines())
      success = False
      runtime = 0
      num_params = 0
      for out in outs:
          out = str(out)
          if "Average Iteration Time:" in str(out):
              slicey = out[out.find(":") + 2 :]
              try:
                  runtime = float(slicey)
              except:
                  print(slicey)
                  quit()
          if "Number of Parameters:" in str(out):
              slicey = out[out.find(":") + 2 :]
              try:
                  num_params = int(slicey)
              except:
                  print(slicey)
                  quit()
          if str(out) == str(TEST_SUCCESS_MESSAGE):
              success = True
      return (
          runtime,
          round(float(int(num_params)) / 10.0**9, 3),
          success,
          errs,
      )
  
imports: import subprocess
  import os
  from apex.transformer.testing.commons import TEST_SUCCESS_MESSAGE
label_desc: Use image node_id 1 for calling a global function with example usage: run_gpt(cmd) and returns: runtime,  round,  success,  errs