class_docstr: Class that holds a vocabulary for the dataset.
class_docstr_tok: ["Class","that","holds","a","vocabulary","for","the","dataset","."]
docstr: Converts an ID to the word it represents.
  
  Args:
    cur_id: The ID
  
  Returns:
    The word that :obj:`cur_id` represents.
docstr_tok: ["Converts","an","ID","to","the","word","it","represents",".","Args",":","cur_id",":","The","ID","Returns",":","The","word","that",":","obj",":","`","cur_id","`","represents","."]
code: def id_to_word(self, cur_id):
      """Converts an ID to the word it represents.
  
      Args:
        cur_id: The ID
  
      Returns:
        The word that :obj:`cur_id` represents.
      """
      if cur_id < self.size:
          return self._id_to_word[cur_id]
      return "ERROR"
  
imports: import random
  import numpy
  from textattack.shared.utils import LazyLoader
label_desc: Use image node_id 7 for calling the Vocabulary obj's underlying member method code with example usage: obj.id_to_word(cur_id) and returns: str, self