code: def get_parser() -> argparse.ArgumentParser:
      parser = argparse.ArgumentParser(
          description="This script combines (tokenized) text from split directories "
          "and generate vocabulary file",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      parser.add_argument(
          "--split_dir",
          type=str,
          required=True,
          help="Split directory",
      )
      parser.add_argument(
          "--num_splits",
          type=int,
          required=True,
          help="Number of splited directories",
      )
      parser.add_argument(
          "--output_dir",
          "-o",
          required=True,
          help="Output diretory",
      )
      parser.add_argument(
          "--text_file",
          type=str,
          default="unpaired_text",
          help="Text file to read in each split directory",
      )
      parser.add_argument(
          "--vocab_file",
          type=str,
          default="tokens.txt",
          help="Output vocabulary file",
      )
      parser.add_argument(
          "--add_symbol",
          type=str,
          help="Extra symbol added to vocabulary",
          action="append",
      )
      return parser
  
file_path: espnet/egs2/speechcommands/asr1/pyscripts/text/combine_text_and_vocab.py
imports: import argparse
  import sys
  from collections import defaultdict
  from pathlib import Path
  from typing import Optional
  from tqdm import tqdm
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser