code: def parse_args():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--input_dir",
          type=str,
          default="/u/nlp/software/stanza/models/current-models-%s"
          % __resources_version__,
          help="Input dir for various models.  Defaults to the recommended home on the nlp cluster",
      )
      parser.add_argument(
          "--output_dir",
          type=str,
          default="/u/nlp/software/stanza/models/%s"
          % __resources_version__,
          help="Output dir for various models.",
      )
      parser.add_argument(
          "--packages_only",
          action="store_true",
          default=False,
          help="Only build the package maps instead of rebuilding everything",
      )
      parser.add_argument(
          "--lang",
          type=str,
          default=None,
          help="Only process this language.  If left blank, will prepare all languages.  To use this argument, a previous prepared resources with all of the languages is necessary.",
      )
      args = parser.parse_args()
      args.input_dir = os.path.abspath(args.input_dir)
      args.output_dir = os.path.abspath(args.output_dir)
      return args
  
imports: import argparse
  from collections import defaultdict
  import json
  import os
  from pathlib import Path
  import hashlib
  import shutil
  import zipfile
  from stanza import __resources_version__
  from stanza.models.common.constant import lcode2lang, two_to_three_letters, three_to_two_letters
  from stanza.resources.default_packages import PACKAGES, TRANSFORMERS, TRANSFORMER_NICKNAMES
  from stanza.resources.default_packages import *
  from stanza.utils.get_tqdm import get_tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args