code: def parse_args():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--metrics_actor_name", type=str, required=True
      )
      parser.add_argument(
          "--metrics_actor_namespace", type=str, required=True
      )
      parser.add_argument("--test_name", type=str, required=True)
      parser.add_argument("--num_runs", type=int, required=True)
      parser.add_argument(
          "--num_tasks_or_actors_per_run", type=int, required=True
      )
      parser.add_argument(
          "--num_cpus_in_cluster", type=int, required=True
      )
      parser.add_argument(
          "--num_gpus_in_cluster", type=int, required=True
      )
      parser.add_argument(
          "--library_to_import",
          type=str,
          required=True,
          choices=["torch", "none"],
      )
  
      group = parser.add_mutually_exclusive_group(required=True)
      group.add_argument("--with_actors", action="store_true")
      group.add_argument("--with_tasks", action="store_true")
  
      group = parser.add_mutually_exclusive_group(required=True)
      group.add_argument("--with_gpu", action="store_true")
      group.add_argument("--without_gpu", action="store_true")
  
      group = parser.add_mutually_exclusive_group(required=True)
      group.add_argument("--with_runtime_env", action="store_true")
      group.add_argument("--without_runtime_env", action="store_true")
  
      return parser.parse_args()
  
file_path: ray/release/benchmark-worker-startup/test_single_configuration.py
imports: import argparse
  import ray
  import sys
  import time
label_desc: Use image node_id 4 for calling a global function with example usage: parse_args() and returns: parser