code: def run_release_test_in_subprocess(
      test_file: str, args: List[str]
  ) -> bool:
      import subprocess as sp
  
      # Run the test in subprocess
      cmds = ["python", test_file, *args]
  
      print(f"Running: {' '.join(cmds)}")
      proc = None
      try:
          proc = sp.run(
              cmds, check=True, text=True, capture_output=True
          )
          proc.check_returncode()
          return True
      except sp.CalledProcessError as e:
          print(f"Failed to run :{' '.join(cmds)}")
          print(e)
          print(e.stdout)
          print(e.stderr)
          return False
  
file_path: ray/release/nightly_tests/stress_tests/test_state_api_with_other_tests.py
imports: import time
  from typing import Dict, List
  import click
  import json
  import os
  import ray
  from ray.util.state import list_actors, list_nodes, list_objects, list_tasks, summarize_actors, summarize_objects, summarize_tasks
  import ray._private.test_utils
  from ray._private.state_api_test_utils import StateAPICallSpec, periodic_invoke_state_apis_with_actor, STATE_LIST_LIMIT
label_desc: Use image node_id 3 for calling a global function with example usage: run_release_test_in_subprocess(test_file, args) and returns: True, False