code: def load_pretrain(filename, foundation_cache=None):
      if not filename:
          return None
  
      if foundation_cache is not None:
          return foundation_cache.load_pretrain(filename)
  
      logger.debug("Loading pretrain from %s", filename)
      return Pretrain(filename)
  
file_path: stanza/stanza/models/common/foundation_cache.py
imports: import logging
  import threading
  from stanza.models.common import bert_embedding
  from stanza.models.common.char_model import CharacterLanguageModel
  from stanza.models.common.pretrain import Pretrain
label_desc: Use image node_id 3 for calling a global function with example usage: load_pretrain(filename, foundation_cache) and returns: Pretrain, None, foundation_cache