code: def postprocess_args(args):
      """
      After parsing args, unify some settings
      """
      # use a language specific default for retag_method if we know the language
      # otherwise, use xpos
      if (
          args["retag_method"] is None
          and "lang" in args
          and args["lang"] in RETAG_METHOD
      ):
          args["retag_method"] = RETAG_METHOD[args["lang"]]
      if args["retag_method"] is None:
          args["retag_method"] = "xpos"
  
      if args["retag_method"] == "xpos":
          args["retag_xpos"] = True
      elif args["retag_method"] == "upos":
          args["retag_xpos"] = False
      else:
          raise ValueError("Unknown retag method {}".format(xpos))
  
file_path: stanza/stanza/models/constituency/retagging.py
imports: import copy
  import logging
  from stanza import Pipeline
  from stanza.models.common.foundation_cache import FoundationCache
  from stanza.models.common.vocab import VOCAB_PREFIX
  from stanza.resources.common import download_resources_json, load_resources_json, get_language_resources
label_desc: Use image node_id 2 for calling a global function with example usage: postprocess_args(args) without return types