code: def get_pretrain_package(
      lang, package, model_pretrains, default_pretrains
  ):
      package, uses_pretrain, _ = split_package(package)
  
      if not uses_pretrain or lang in no_pretrain_languages:
          return None
      elif (
          model_pretrains is not None
          and lang in model_pretrains
          and package in model_pretrains[lang]
      ):
          return model_pretrains[lang][package]
      elif lang in default_pretrains:
          return default_pretrains[lang]
  
      raise RuntimeError(
          "pretrain not specified for lang %s package %s"
          % (lang, package)
      )
  
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 7 for calling a global function with example usage: get_pretrain_package(lang, package, model_pretrains, default_pretrains) and returns: None, model_pretrains, default_pretrains