code: def process_lcode(args):
      resources = json.load(
          open(os.path.join(args.output_dir, "resources.json"))
      )
      resources_new = {}
      resources_new["multilingual"] = resources["multilingual"]
      for lang in resources:
          if lang == "multilingual":
              continue
          if "alias" in resources[lang]:
              continue
          if lang not in lcode2lang:
              print(lang + " not found in lcode2lang!")
              continue
          lang_name = lcode2lang[lang]
          resources[lang]["lang_name"] = lang_name
          resources_new[lang.lower()] = resources[lang.lower()]
          resources_new[lang_name.lower()] = {"alias": lang.lower()}
          if lang.lower() in two_to_three_letters:
              resources_new[two_to_three_letters[lang.lower()]] = {
                  "alias": lang.lower()
              }
          elif lang.lower() in three_to_two_letters:
              resources_new[three_to_two_letters[lang.lower()]] = {
                  "alias": lang.lower()
              }
      print("Processed lcode aliases.  Writing resources.json")
      json.dump(
          resources_new,
          open(os.path.join(args.output_dir, "resources.json"), "w"),
          indent=2,
      )
  
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 32 for calling a global function with example usage: process_lcode(args) without return types