code: def make_text_scp(
      input_text: str,
      output_scp: str,
      num_digits: int,
  ):
      input_text_path = Path(input_text)
      input_text_file = input_text_path.open("r+b")
      input_text_mm = mmap(input_text_file.fileno(), 0)
      output_scp_path = Path(output_scp)
      output_scp_file = output_scp_path.open("w")
  
      output_scp_file.write(f"{num_digits}\n")
      start_num_bytes = 0
      while True:
          line = input_text_mm.readline()
          if not line:
              break
          line_length = len(line) - 1
          end_num_bytes = start_num_bytes + line_length
  
          start_digits = convert_digits(start_num_bytes, num_digits)
          end_digits = convert_digits(end_num_bytes, num_digits)
  
          output_scp_file.write(f"{start_digits}{end_digits}\n")
          start_num_bytes = end_num_bytes + 1
  
      input_text_mm.close()
      output_scp_file.close()
  
file_path: espnet/egs2/librilight_limited/asr1/pyscripts/text/make_text_scp.py
imports: import argparse
  import sys
  from mmap import mmap
  from pathlib import Path
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 3 for calling a global function with example usage: make_text_scp(input_text, output_scp, num_digits) without return types