code: def load_state_dict(cls, state_dict):
      class_dict = {
          "CharVocab": CharVocab.load_state_dict,
          "PretrainedWordVocab": PretrainedWordVocab.load_state_dict,
          "TagVocab": convert_tag_vocab,
          "CompositeVocab": CompositeVocab.load_state_dict,
          "WordVocab": WordVocab.load_state_dict,
      }
      new = cls()
      assert (
          "_key2class" in state_dict
      ), "Cannot find class name mapping in state dict!"
      key2class = state_dict.pop("_key2class")
      for k, v in state_dict.items():
          classname = key2class[k]
          new[k] = class_dict[classname](v)
      return new
  
file_path: stanza/stanza/models/ner/vocab.py
imports: from collections import Counter, OrderedDict
  from stanza.models.common.vocab import BaseVocab, BaseMultiVocab, CharVocab, CompositeVocab
  from stanza.models.common.vocab import VOCAB_PREFIX
  from stanza.models.common.pretrain import PretrainedWordVocab
  from stanza.models.pos.vocab import WordVocab
label_desc: Use image node_id 2 for calling the MultiVocab obj's underlying member method code with example usage: obj.load_state_dict(cls, state_dict) and returns: new