code: def _run_bash_command_subprocess(command: str, timeout: float):
      """Ran in a multiprocessing process."""
      try:
          subprocess.run(command, check=True, timeout=timeout)
          return_code = 0
      except subprocess.TimeoutExpired:
          return_code = TIMEOUT_RETURN_CODE
      except subprocess.CalledProcessError as e:
          return_code = e.returncode
      print(f"Subprocess return code: {return_code}", file=sys.stderr)
      # Exit so the return code is propagated to the outer process
      sys.exit(return_code)
  
file_path: ray/release/ray_release/command_runner/_anyscale_job_wrapper.py
imports: import argparse
  import time
  import os
  from pathlib import Path
  import subprocess
  import multiprocessing
  import json
  import sys
  import logging
  from urllib.parse import urlparse
  from typing import Optional, List, Tuple
label_desc: Use image node_id 5 for calling a global function with example usage: _run_bash_command_subprocess(command, timeout) without return types