code: def __init__(self, lang, is_synonym=True):
      super().__init__(cache=True)
  
      self.lang = lang
      self.is_synonym = is_synonym
  
      try:
          import nltk
          from nltk.corpus import wordnet
      except ModuleNotFoundError:
          raise ModuleNotFoundError(
              "Missed nltk library. Install nltk by `pip install nltk`"
          )
  
      # try:
      #     # Check whether wordnet package is downloaded
      #     wordnet.synsets('computer')
      #     # Check whether POS package is downloaded
      #     nltk.pos_tag('computer')
      # except LookupError:
      #     nltk.download('wordnet')
      #     nltk.download('averaged_perceptron_tagger')
  
      self.model = self.read()
  
imports: from nlpaug.model.word_dict import WordDictionary
label_desc: Use image node_id 1 to create a new WordNet object from inherited base classes: WordDictionary with example: obj = WordNet(lang, is_synonym)