code: def init_from_list(self, arr, min_freq=1, max_vocab_size=100000):
      for word_, c_ in arr:
          if c_ >= min_freq:
              self.add_symbol(word_)
          if self.vocab_size > max_vocab_size:
              break
      if (
          self.pretrained_word_emb_name == "None"
          or self.pretrained_word_emb_name is None
      ):
          self.randomize_embeddings(self.embedding_dims)
      else:
          # print("loadding pretrained embedding file in {}".format(self.pretrained_embedding_fn))
          self.load_embeddings(
              pretrained_word_emb_name=self.pretrained_word_emb_name,
              pretrained_word_emb_url=self.pretrained_word_emb_url,
              pretrained_word_emb_cache_dir=self.pretrained_word_emb_cache_dir,
          )
  
imports: from operator import itemgetter
  import numpy
label_desc: Use image node_id 6 for calling the Vocab obj's underlying member method code with example usage: obj.init_from_list(arr, min_freq, max_vocab_size) without return types