code: def parse_args():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--searcher", choices=["asha", "random"], required=True
      )
      parser.add_argument("--exp-name", type=str, required=True)
      parser.add_argument("--max-length", type=int, required=True)
      parser.add_argument("--max-trials", type=int, required=True)
      parser.add_argument(
          "--max-concurrent-trials", type=int, default=0
      )
      parser.add_argument("--divisor", type=int, default=3)
      parser.add_argument("--num-rungs", type=int, default=16)
      parser.add_argument(
          "--exception-points", type=str, nargs="+", default=[]
      )
      parser.add_argument("--config-name", type=str, required=True)
      parser.add_argument(
          "--metric-as-dict", action="store_true", default=False
      )
      return parser.parse_args()
  
file_path: determined/e2e_tests/tests/fixtures/custom_searcher/core_api_custom_searcher.py
imports: import argparse
  import logging
  from typing import List, Optional, Tuple
  import searchers
  from urllib3 import connectionpool
  import determined
  from determined import searcher
  from determined.common import util
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: parser