code: def get_args() -> argparse.Namespace:
      parser = argparse.ArgumentParser(
          description="Run an experiment and create a result csv file."
      )
      parser.add_argument(
          "experiment",
          type=str,
          help="name of an experiment registered in the experiments registry",
      )
      parser.add_argument(
          "--seed",
          type=int,
          default=None,
          help="Use a seed for reproducibility (for generators which take care of seeding)",
      )
      parser.add_argument(
          "--cap_index",
          type=int,
          default=None,
          help="Stop after generationg/running settings #cap_index",
      )
      parser.add_argument(
          "--output",
          type=str,
          default=None,
          help="Output path for the CSV file (default: <experiment>.csv). Existing files are appended",
      )
      parser.add_argument(
          "--imports",
          type=str,
          default=None,
          help="Comma-separated list of file paths with additional experiment(s) and/or optimizer(s) definitions",
      )
      parser.add_argument(
          "--num_workers",
          type=int,
          default=1,
          help="Numbers of workers to use for the computation (splits the job in chunks)",
      )
      parser.add_argument(
          "--repetitions",
          type=int,
          default=1,
          help="Number of repetitions to perform for the experiment plan (seeds will be incremented)",
      )
      parser.add_argument(
          "--plot",
          nargs="?",
          default=False,
          const=True,
          help="Creates the corresponding plots if present (provide a path, or folder <experiment>_plots will be used)",
      )
      return parser.parse_args()
  
file_path: nevergrad/nevergrad/benchmark/__main__.py
imports: import argparse
  from pathlib import Path
  from concurrent import futures
  import nevergrad.common.typing
  from .None import utils
  from .None import core
  from .None import plotting
label_desc: Use image node_id 2 for calling a global function with example usage: get_args() and returns: parser