code: def run_os_cmd(cmd):
      """Runs commands in bash environment in foreground."""
      os.system('bash -c "{}"'.format(cmd))
  
file_path: pycls/tools/sweep_launch_job.py
imports: import argparse
  import json
  import os
  import signal
  import subprocess
  import sys
  from datetime import datetime
label_desc: Use image node_id 2 for calling a global function with example usage: run_os_cmd(cmd) without return types