code: def __init__(self, other=None):
      if other is None:
          self.bert = {}
          self.charlms = {}
          self.pretrains = {}
          # future proof the module by using a lock for the glorious day
          # when the GIL is finally gone
          self.lock = threading.Lock()
      else:
          self.bert = other.bert
          self.charlms = other.charlms
          self.pretrains = other.pretrains
          self.lock = other.lock
  
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 1 to create a new FoundationCache object  with example: obj = FoundationCache(other)