code: def get_args():
      parser = argparse.ArgumentParser(
          description="""This script converts an RTTM with
          speaker info into kaldi utt2spk and segments"""
      )
      parser.add_argument(
          "--use-reco-id-as-spkr",
          type=str,
          choices=["true", "false"],
          default="false",
          help="Use the recording ID based on RTTM and "
          "reco2file_and_channel as the speaker",
      )
      parser.add_argument(
          "--append-reco-id-to-spkr",
          type=str,
          choices=["true", "false"],
          default="false",
          help="Append recording ID to the speaker ID",
      )
  
      parser.add_argument(
          "rttm_file",
          type=str,
          help="""Input RTTM file.
                          The format of the RTTM file is
                          <type> <file-id> <channel-id> <begin-time> """
          """<end-time> <NA> <NA> <speaker> <conf>""",
      )
      parser.add_argument(
          "reco2file_and_channel",
          type=str,
          help="""Input reco2file_and_channel.
                          The format is <recording-id> <file-id> <channel-id>.""",
      )
      parser.add_argument(
          "utt2spk", type=str, help="Output utt2spk file"
      )
      parser.add_argument(
          "segments", type=str, help="Output segments file"
      )
  
      args = parser.parse_args()
  
      args.use_reco_id_as_spkr = bool(
          args.use_reco_id_as_spkr == "true"
      )
      args.append_reco_id_to_spkr = bool(
          args.append_reco_id_to_spkr == "true"
      )
  
      if args.use_reco_id_as_spkr:
          if args.append_reco_id_to_spkr:
              raise Exception(
                  """Appending recording ID to speaker does
                  not make sense when using --use-reco-id-as-spkr=true"""
              )
  
      return args
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args