code: def addWord(self, word):
      if word not in self.word2index:
          self.word2index[word] = self.n_words
          self.word2count[word] = 1
          self.index2word[self.n_words] = word
          self.n_words += 1
      else:
          self.word2count[word] += 1
  
file_path: skorch/examples/translation/data.py
imports: import unicodedata
  import string
  import re
label_desc: Use image node_id 3 for calling the Lang obj's underlying member method code with example usage: obj.addWord(word) without return types