code: def get_args():
      parser = argparse.ArgumentParser(
          description="""This script converts kaldi-style utt2spk and
          segments to a NIST RTTM file"""
      )
  
      parser.add_argument(
          "--reco2file-and-channel",
          type=str,
          action=common_lib.NullstrToNoneAction,
          help="""Input reco2file_and_channel.
                          The format is <recording-id> <file-id> <channel-id>.
                          If not provided, then <recording-id> is taken as the
                          <file-id> with <channel-id> = 1.""",
      )
      parser.add_argument(
          "utt2spk", type=str, help="Input utt2spk file"
      )
      parser.add_argument(
          "segments", type=str, help="Input segments file"
      )
      parser.add_argument(
          "rttm_file", type=str, help="Output RTTM file"
      )
  
      args = parser.parse_args()
      return args
  
imports: from __future__ import print_function
  import argparse
  import sys
  import libs.common
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args