code: def main() -> None:
      if not os.path.exists(args.giza_dir):
          raise ValueError(
              f"Alignments dir {args.giza_dir} does not exist"
          )
  
      if args.mode == "get_replacement_vocab":
          get_replacement_vocab()
      elif args.mode == "filter_by_vocab":
          filter_by_vocab()
      elif args.mode == "get_labeled_corpus":
          get_labeled_corpus()
      else:
          raise ValueError("unknown mode: " + args.mode)
  
file_path: NeMo/examples/nlp/text_normalization_as_tagging/dataset_preparation/prepare_corpora_after_alignment.py
imports: import glob
  import os
  from argparse import ArgumentParser
  from collections import Counter
  from typing import Dict, Optional, TextIO, Tuple
  from nemo.collections.nlp.data.text_normalization_as_tagging.utils import get_src_and_dst_for_alignment
  from nemo.utils import logging
label_desc: Use image node_id 6 for calling a global function with example usage: main() without return types