code: def _parse_args():
      parser = ArgumentParser(
          description=__doc__,
          formatter_class=RawTextHelpFormatter,
      )
      parser.add_argument(
          "--debug", action="store_true", help="Enable debug log"
      )
      parser.add_argument(
          "--dataset",
          default="librispeech",
          type=str,
          choices=["librispeech", "librilight"],
      )
      parser.add_argument(
          "--root-dir",
          type=Path,
          help="The path to the directory where the directory ``LibriSpeech`` or ``LibriLight`` is stored.",
      )
      parser.add_argument("--num-rank", default=5, type=int)
      parser.add_argument(
          "--feat-type",
          default="mfcc",
          choices=["mfcc", "hubert"],
          type=str,
      )
      parser.add_argument(
          "--layer-index",
          default=6,
          type=int,
          help="The layer index in HuBERT model for feature extraction. (``1`` means the first layer output)",
      )
      parser.add_argument(
          "--checkpoint-path",
          default=None,
          type=Path,
          help="The model checkpoint of hubert_pretrain_base model.",
      )
      parser.add_argument("--use-gpu", default=False, type=bool)
      parser.add_argument(
          "--exp-dir",
          type=Path,
          help="The directory to store the experiment outputs.",
      )
      parser.add_argument(
          "--num-cluster",
          default=100,
          type=int,
          help="The number of clusters for KMeans clustering.",
      )
      parser.add_argument(
          "--percent",
          default=-1,
          type=float,
          help="The percent of data for KMeans clustering. If negative, use all data. (Default: -1)",
      )
      args = parser.parse_args()
      return args
  
file_path: audio/examples/hubert/preprocess.py
imports: import logging
  from argparse import ArgumentParser, RawTextHelpFormatter
  from pathlib import Path
  import torch
  from utils import create_tsv, dump_features, get_km_label, learn_kmeans
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_args() and returns: args