code: def get_parser():
      parser = argparse.ArgumentParser(
          description="compute kmeans codebook from kaldi-computed feats"
      )
      parser.add_argument(
          "feats_scp", help="location of feature scp files"
      )
      parser.add_argument(
          "--save_dir", help="where to save the output", required=True
      )
      parser.add_argument(
          "--sample_pct",
          "-r",
          type=float,
          help="percentage of timesteps to sample",
          default=0,
      )
      parser.add_argument(
          "--faiss_specs",
          "-f",
          type=str,
          help="faiss index specs; separated by space "
          "format is: PCAx_NORM_CLUSx_SPHERICAL -> "
          "PCAx if exists first apply PCA "
          "NORM if exists, normalize the vector by L2 norm "
          "CLUSx must exist, cluster to x clusters "
          "SPEHRICAL if exists, apply spherical kmeans",
          default="l2",
      )
  
      return parser
  
file_path: espnet/egs2/mucs21_subtask1/asr1/pyscripts/feats/feats_cluster_faiss.py
imports: import argparse
  import gc
  import os
  import os.path
  import random
  from collections import namedtuple
  import faiss
  import numpy
  import soundfile
  import torch
  import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser