code: def get_parser():
      """Construct the parser."""
      parser = argparse.ArgumentParser(
          description=__doc__,
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      parser.add_argument(
          "--pretrained_model", type=str, help="Pretrained model."
      )
      parser.add_argument(
          "--toolkit",
          type=str,
          help="Toolkit for Extracting speaker speaker embeddingss.",
          choices=["espnet", "speechbrain", "rawnet"],
      )
      parser.add_argument(
          "--spk_embed_tag",
          type=str,
          help="the target data name (e.g., xvector for xvector.scp)",
          default="spk_embed",
      )
      parser.add_argument(
          "--verbose", type=int, default=1, help="Verbosity level."
      )
      parser.add_argument(
          "--device",
          type=str,
          default="cuda:0",
          help="Inference device",
      )
      parser.add_argument(
          "in_folder",
          type=Path,
          help="Path to the input kaldi data directory.",
      )
      parser.add_argument(
          "out_folder",
          type=Path,
          help="Output folder to save the speaker embeddings.",
      )
      return parser
  
file_path: espnet/egs2/uslu14/asr1/pyscripts/utils/extract_spk_embed.py
imports: import argparse
  import logging
  import os
  import sys
  from pathlib import Path
  import kaldiio
  import librosa
  import numpy
  import torch
  from tqdm.contrib import tqdm
  from espnet2.fileio.sound_scp import SoundScpReader
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser