code: def get_parser():
      parser = argparse.ArgumentParser(
          description="compute kmeans codebook from kaldi-computed feats"
      )
      # fmt: off
      parser.add_argument('data', help='location of tsv files')
      parser.add_argument('--split', help='which split to read', required=True)
      parser.add_argument('--save-dir', help='where to save the output', required=True)
      parser.add_argument('--checkpoint', type=str, help='checkpoint for wav2vec ctc model', required=True)
      parser.add_argument('--layer', type=int, default=14, help='which layer to use')
      # fmt: on
  
      return parser
  
file_path: fairseq/examples/wav2vec/unsupervised/scripts/wav2vec_extract_features.py
imports: import argparse
  import os
  import os.path
  import tqdm
  import torch
  import torch.nn.functional
  from shutil import copyfile
  from npy_append_array import NpyAppendArray
  import fairseq
  import soundfile
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser