code: def load_vocab(self, vocab_path):
      self._freq_dict = json.loads(
          open(vocab_path + ".freq.json", "r").read()
      )
      self._word2idx = json.loads(
          open(vocab_path + ".word2idx.json", "r").read()
      )
      self._idx2word = {}
      for w, idx in self._word2idx.items():
          self._idx2word[idx] = w
      self.vocab_size_oov = len(self._idx2word)
  
imports: import logging
  import json
  import numpy
  from collections import OrderedDict
  from .None import ontology
label_desc: Use image node_id 7 for calling the Vocab obj's underlying member method code with example usage: obj.load_vocab(vocab_path) without return types