code: def get_parser():
      parser = argparse.ArgumentParser(
          description="calculate real time factor (RTF)"
      )
      parser.add_argument(
          "--log-dir",
          type=str,
          default=None,
          help="path to logging directory",
      )
      parser.add_argument(
          "--log-name",
          type=str,
          default="decode",
          choices=["decode", "asr_inference"],
          help="name of logfile, e.g., 'decode' (espnet1) and "
          "'asr_inference' (espnet2)",
      )
      parser.add_argument(
          "--input-shift",
          type=float,
          default=10.0,
          help="shift of inputs in milliseconds",
      )
      parser.add_argument(
          "--start-times-marker",
          type=str,
          default="input lengths",
          choices=["input lengths", "speech length"],
          help="String marking start of decoding in logfile, e.g., "
          "'input lengths' (espnet1) and 'speech length' (espnet2)",
      )
      parser.add_argument(
          "--end-times-marker",
          type=str,
          default="prediction",
          choices=["prediction", "best hypo"],
          help="String marking end of decoding in logfile, e.g., "
          "'prediction' (espnet1) and 'best hypo' (espnet2)",
      )
      parser.add_argument(
          "--inf-num",
          type=int,
          default=1,
          help="number of inference hypothesis for each utterance, e.g. "
          ">1 in multi-speaker asr.",
      )
      return parser
  
imports: import argparse
  import codecs
  import glob
  import os
  from dateutil import parser
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser