code: def main():
      """Convert standard rttm to sample-based result"""
      args = get_parser().parse_args()
  
      # logging info
      if args.verbose > 1:
          logging.basicConfig(
              level=logging.DEBUG,
              format="%(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",
          )
      elif args.verbose > 0:
          logging.basicConfig(
              level=logging.INFO,
              format="%(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",
          )
      else:
          logging.basicConfig(
              level=logging.WARN,
              format="%(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",
          )
          logging.warning("Skip DEBUG/INFO messages")
  
      sampling_rate = humanfriendly.parse_size(args.sampling_rate)
      convert_rttm_text(
          args.rttm, args.wavscp, sampling_rate, args.output_path
      )
  
      logging.info("Successfully finished RTTM converting.")
  
file_path: espnet/egs2/stop/asr1/pyscripts/utils/convert_rttm.py
imports: import argparse
  import collections.abc
  import logging
  import os
  import re
  from pathlib import Path
  from typing import Union
  import humanfriendly
  import numpy
  import soundfile
  from typeguard import check_argument_types
  from espnet2.utils.types import str_or_int
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types