code: def parse_script_args():
      parser = argparse.ArgumentParser()
      parser.add_argument("--num-pgs-stage", type=int, default=100)
      parser.add_argument("--num-stages", type=int, default=100)
      parser.add_argument("--num-pending-pgs", type=int, default=0)
      parser.add_argument("--local", action="store_true", default=False)
      return parser.parse_known_args()
  
file_path: ray/release/nightly_tests/placement_group_tests/long_running_performance_test.py
imports: import argparse
  import os
  import json
  import logging
  from time import perf_counter
  import ray
  from ray.util.placement_group import placement_group, remove_placement_group
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 2 for calling a global function with example usage: parse_script_args() and returns: parser