class_docstr: Builds and/or loads a dictionary.
  
  All code is TorchScriptable.
class_docstr_tok: ["Builds","and\/or","loads","a","dictionary",".","All","code","is","TorchScriptable","."]
docstr: Return index from token, or unk_token's index, or None.
docstr_tok: ["Return","index","from","token",",","or","unk_token","'s","index",",","or","None","."]
code: def _word_lookup(self, key: str) -> int:
      """
      Return index from token, or unk_token's index, or None.
      """
      if key in self.tok2ind:
          return self.tok2ind[key]
      else:
          return self._unk_token_idx
  
imports: from typing import Dict, List, Tuple
  import torch.jit
label_desc: Use image node_id 2 for calling the ScriptableDictionaryAgent obj's underlying member method code with example usage: obj._word_lookup(key) and returns: self, self