code: def get_partition(self, word: str) -> Tuple[int, int]:
      idx = self.get_id(word)
      part = math.floor(idx / self.size() * self.num_parts)
      assert self.part_start(part) <= idx < self.part_end(part)
      return part, idx - self.part_start(part)
  
file_path: PyTorch-BigGraph/torchbiggraph/converters/dictionary.py
imports: import math
  from typing import Dict, List, Tuple
label_desc: Use image node_id 8 for calling the Dictionary obj's underlying member method code with example usage: obj.get_partition(word) and returns: part,  unknown