code: def __init__(
      self, ix_to_word: List[str], *, num_parts: int = 1
  ) -> None:
      self.ix_to_word: List[str] = ix_to_word
      self.word_to_ix: Dict[str, int] = {
          w: i for i, w in enumerate(ix_to_word)
      }
      self.num_parts = num_parts
  
file_path: PyTorch-BigGraph/torchbiggraph/converters/dictionary.py
imports: import math
  from typing import Dict, List, Tuple
label_desc: Use image node_id 1 to create a new Dictionary object  with example: obj = Dictionary(ix_to_word)