code: def __init__(self, vocab):
      self.key_to_index = {v: k for k, v in enumerate(vocab)}
  
file_path: scattertext/scattertext/test/test_embeddingsResolver.py
imports: import pandas
  from unittest import TestCase
  import numpy
  from sklearn.decomposition import TruncatedSVD
  from scattertext import EmbeddingsResolver, ClassPercentageCompactor, CorpusFromPandas, whitespace_nlp, CorpusFromParsedDocuments, ParsedCorpus
  from scattertext.test.test_CorpusFromParsedDocuments import build_term_doc_matrix
  from scattertext.test.test_corpusFromPandas import get_docs_categories
label_desc: Use image node_id 1 to create a new WV object  with example: obj = WV(vocab)