code: def cli_main():
      args = _parse_args()
      _init_logger(args.debug)
      transcripts = _extract_train_text(
          args.tedlium_path, args.output_dir
      )
      model = train_spm(transcripts)
  
      with open(args.output_file, "wb") as f:
          f.write(model)
  
      logger.info("Successfully trained the sentencepiece model")
  
file_path: audio/examples/asr/emformer_rnnt/tedlium3/train_spm.py
imports: import io
  import logging
  import os
  import pathlib
  from argparse import ArgumentParser, RawTextHelpFormatter
  import sentencepiece
label_desc: Use image node_id 5 for calling a global function with example usage: cli_main() without return types