code: def get_parser():
      parser = argparse.ArgumentParser(
          description="Prepare segments from either HTS-style \n"
          "alignment files or MUSICXML files",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      parser.add_argument("scp", type=str, help="scp folder")
      parser.add_argument(
          "--input_type",
          type=str,
          choices=["hts", "xml"],
          help="type of input files\n"
          "(hts for HTS-style alignment files, xml for MUSICXML files)",
      )
      parser.add_argument(
          "--threshold",
          type=int,
          help="threshold for silence identification.",
          default=30000,
      )
      parser.add_argument(
          "--silence",
          action="append",
          help="silence_phone",
          default=["pau"],
      )
      parser.add_argument(
          "--score_dump",
          type=str,
          default="score_dump",
          help="score dump directory",
      )
      args = parser.parse_args()
      return parser, args
  
imports: import argparse
  import math
  import os
  import sys
  import music21
  from espnet2.fileio.score_scp import SingingScoreWriter, XMLReader
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser,  args