code: def get_id(self, word: str) -> int:
      return self.word_to_ix[word]
  
file_path: PyTorch-BigGraph/torchbiggraph/converters/dictionary.py
imports: import math
  from typing import Dict, List, Tuple
label_desc: Use image node_id 2 for calling the Dictionary obj's underlying member method code with example usage: obj.get_id(word) and returns: self