code: def parse_script_args():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--kill-workers", action="store_true", default=False
      )
      parser.add_argument("--kill-interval", type=int, default=60)
      parser.add_argument("--max-to-kill", type=int, default=2)
      parser.add_argument(
          "--no-start",
          action="store_true",
          default=False,
          help=(
              "If set, resource killer won't be starting to kill resources when "
              "the script is done. Driver needs to manually "
              "obtain the resource killer handle and invoke run method to "
              "start killing nodes. If not set, as soon as "
              "the script is done, resources will be killed every "
              "--kill-interval seconds."
          ),
      )
      parser.add_argument(
          "--kill-delay",
          type=int,
          default=0,
          help=(
              "Seconds to wait before node killer starts killing nodes. No-op if "
              "'no-start' is set.",
          ),
      )
      parser.add_argument(
          "--task-names",
          nargs="*",
          default=[],
      )
      return parser.parse_known_args()
  
file_path: ray/release/nightly_tests/setup_chaos.py
imports: import argparse
  from ray.util.state.api import StateApiClient
  from ray.util.state.common import ListApiOptions, StateResource
  import ray
  from ray._private.test_utils import get_and_run_resource_killer, NodeKillerActor, WorkerKillerActor
label_desc: Use image node_id 1 for calling a global function with example usage: parse_script_args() and returns: parser