class_docstr: Transforms an input by replacing its words with synonyms provided by
  WordNet. Download nltk_data before running.
docstr: Returns a list containing all possible words with 1 character replaced
  by a homoglyph.
docstr_tok: ["Returns","a","list","containing","all","possible","words","with","1","character","replaced","by","a","homoglyph","."]
code: def _get_candidates(self, word, pos=None, n=5):
      r"""
      Returns a list containing all possible words with 1 character replaced
      by a homoglyph.
  
      """
      synonym = set()
      # filter different pos in get_wsd function
      synsets = self.processor.get_synsets([(word, pos)])[0]
  
      for syn in synsets:
          for syn_word in syn.lemma_names(lang=self.language):
              if (syn_word != word) and ("_" not in syn_word):
                  # WordNet can suggest phrases that are joined by '_' but we
                  # ignore phrases.
                  synonym.add(syn_word)
      if not synonym:
          return []
  
      return list(synonym)[:n]
  
imports: from ...transformation import WordSubstitute
label_desc: Use image node_id 3 for calling the SwapSynWordNet obj's underlying member method code with example usage: obj._get_candidates(word, pos, n) and returns: list, list