code: def get_parser():
      parser = config_argparse.ArgumentParser(
          description="ASR Decoding",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
  
      # Note(kamo): Use '_' instead of '-' as separator.
      # '-' is confusing if written in yaml.
      parser.add_argument(
          "--log_level",
          type=lambda x: x.upper(),
          default="INFO",
          choices=(
              "CRITICAL",
              "ERROR",
              "WARNING",
              "INFO",
              "DEBUG",
              "NOTSET",
          ),
          help="The verbose level of logging",
      )
  
      parser.add_argument("--output_dir", type=str, required=True)
      parser.add_argument(
          "--ngpu",
          type=int,
          default=0,
          help="The number of gpus. 0 indicates CPU mode",
      )
      parser.add_argument(
          "--seed", type=int, default=0, help="Random seed"
      )
      parser.add_argument(
          "--num_workers",
          type=int,
          default=1,
          help="The number of workers used for DataLoader",
      )
  
      group = parser.add_argument_group("Input data related")
      group.add_argument(
          "--data_path_and_name_and_type",
          type=str,
          required=True,
      )
      group.add_argument("--key_file", type=str_or_none)
      group.add_argument(
          "--allow_variable_data_keys", type=str2bool, default=False
      )
  
      group = parser.add_argument_group(
          "The model configuration related"
      )
      group.add_argument(
          "--model_tag",
          type=str,
          default="base",
          choices=[
              "base.en",
              "base",
              "small.en",
              "small",
              "medium.en",
              "medium",
              "large",
          ],
          help="Model tag of the released whisper models.",
      )
      group.add_argument(
          "--model_dir",
          type=str_or_none,
          default="./models",
          help="The directory to download whisper models.",
      )
  
      group = parser.add_argument_group("Decoding options related")
      group.add_argument(
          "--decode_options",
          action=NestedDictAction,
          default=dict(),
          help="Decode options for whisper transcribe.",
      )
      return parser
  
imports: import argparse
  import logging
  import os
  import sys
  from distutils.version import LooseVersion
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  import torch
  import whisper
  from typeguard import check_argument_types
  from espnet2.fileio.datadir_writer import DatadirWriter
  from espnet2.torch_utils.set_all_random_seed import set_all_random_seed
  from espnet2.utils import config_argparse
  from espnet2.utils.nested_dict_action import NestedDictAction
  from espnet2.utils.types import str2bool, str2triple_str, str_or_none
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 2 for calling a global function with example usage: get_parser() and returns: parser