code: def get_parser() -> argparse.ArgumentParser:
      parser = argparse.ArgumentParser(
          description="Pack input files to archive format"
      )
      subparsers = parser.add_subparsers()
  
      # Create subparser for different tasks
      for name, contents in [
          ("asr", ASRPackedContents),
          ("st", STPackedContents),
          ("tts", TTSPackedContents),
          ("enh", EnhPackedContents),
          ("diar", DiarPackedContents),
          ("svs", SVSPackedContents),
          ("enh_s2t", EnhS2TPackedContents),
          ("ssl", SSLPackedContents),
          ("s2st", S2STPackedContents),
          ("s2t", S2TPackedContents),
          ("spk", SpkPackedContents),
      ]:
          parser_asr = subparsers.add_parser(
              name,
              formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          )
          add_arguments(parser_asr, contents)
          parser_asr.set_defaults(contents=contents)
      return parser
  
imports: import argparse
  from typing import Type
  from espnet2.main_funcs.pack_funcs import pack
label_desc: Use image node_id 2 for calling a global function with example usage: get_parser() and returns: parser