code: def get_parser() -> argparse.ArgumentParser:
      parser = argparse.ArgumentParser(
          description="Run eval sets through the API"
      )
      parser.add_argument(
          "model", type=str, help="Name of a completion model."
      )
      parser.add_argument(
          "eval_set", type=str, help="Name of eval set. See registry."
      )
      parser.add_argument(
          "--registry_path",
          type=str,
          default=None,
          action="append",
          help="Path to the registry",
      )
      parser.add_argument(
          "--resume",
          action=argparse.BooleanOptionalAction,
          default=True,
          help="Resume from last checkpoint.",
      )
      parser.add_argument(
          "--exit-on-error",
          action=argparse.BooleanOptionalAction,
          default=True,
          help="Exit if any oaieval command fails.",
      )
      return parser
  
file_path: evals/evals/cli/oaievalset.py
imports: import argparse
  import json
  import logging
  import subprocess
  from pathlib import Path
  from typing import Optional, cast
  from evals.registry import Registry
label_desc: Use image node_id 2 for calling a global function with example usage: get_parser() and returns: parser