code: def get_parser():
      parser = argparse.ArgumentParser(
          description="mean pooling of the representation"
      )
      parser.add_argument("source", help="directory with features")
      parser.add_argument(
          "--split", help="which split to read", required=True
      )
      parser.add_argument(
          "--root", help="root of espnet", required=True
      )
      parser.add_argument(
          "--save_dir", help="where to save the output", required=True
      )
      parser.add_argument(
          "--subsample_rate",
          type=float,
          default=0.5,
          help="size to subsample data to",
      )
      parser.add_argument("--utt_id", type=str)
      parser.add_argument(
          "--remove_extra",
          action="store_true",
          help="if true, removes extra states, otherwise pads with 0s",
      )
  
      return parser
  
file_path: espnet/egs2/lrs3/avsr1/pyscripts/feats/mean_pool_scp.py
imports: import argparse
  import math
  import os
  import os.path
  from shutil import copyfile
  import numpy
  import torch
  import torch.nn.functional
  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