docstr: Returns the index of the specified word.
docstr_tok: ["Returns","the","index","of","the","specified","word","."]
code: def index(self, word, no_unk=False):
      """
      Returns the index of the specified word.
      """
      if no_unk:
          return self.word2id[word]
      else:
          return self.word2id.get(word, self.unk_index)
  
file_path: pytext/pytext/data/xlm_dictionary.py
imports: import os
  from logging import getLogger
  import numpy
  import torch
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 7 for calling the Dictionary obj's underlying member method code with example usage: obj.index(word, no_unk) and returns: self, self