code: def cli_main():
      args = _parse_args()
      _init_logger(args.debug)
      with open(args.mustc_path / "en-de/data/train/txt/train.en") as f:
          lines = [line.replace("\n", "") for line in f]
      model = train_spm(lines)
  
      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/mustc/train_spm.py
imports: import io
  import logging
  import pathlib
  from argparse import ArgumentParser, RawTextHelpFormatter
  import sentencepiece
label_desc: Use image node_id 4 for calling a global function with example usage: cli_main() without return types