code: def get_parser():
      parser = argparse.ArgumentParser(
          description="transforms features via a given pca and stored them in target dir"
      )
      parser.add_argument("feats_scp", help="features scp file")
      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(
          "--pca_path",
          type=str,
          help="pca location. will append _A.npy and _b.npy",
          required=True,
      )
      parser.add_argument(
          "--batch_size", type=int, default=2048000, help="batch size"
      )
      parser.add_argument(
          "--dim", type=int, default=512, help="pca dimension"
      )
  
      return parser
  
file_path: espnet/egs2/chime4/asr2/pyscripts/feats/apply_pca_cuml.py
imports: import argparse
  import math
  import os
  import os.path
  import pickle
  from shutil import copyfile
  import numpy
  import tqdm
  from npy_append_array import NpyAppendArray
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser