code: def run_experiment(command: str):
      command_list = shlex.split(command)
      print(f"running {command}")
  
      # Use subprocess.PIPE to capture the output
      fd = subprocess.Popen(
          command_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE
      )
      output, errors = fd.communicate()
  
      return_code = fd.returncode
      assert (
          return_code == 0
      ), f"Command failed with error: {errors.decode('utf-8')}"
  
      # Convert bytes to string and strip leading/trailing whitespaces
      return output.decode("utf-8").strip()
  
file_path: trl/benchmark/benchmark.py
imports: import argparse
  import math
  import os
  import shlex
  import subprocess
  import uuid
  from distutils.util import strtobool
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: run_experiment(command) and returns: output