class_docstr: Word Swap by swaping words that have multiple POS tags in WordNet.
docstr: Returns a list containing all possible words.
  
  :param word: str, the word to replace
  :param pos: str, the pos of the word to replace
  :param n: the number of returned words
  :return: a candidates list
code: def _get_candidates(self, word, pos=None, n=5):
      r"""
      Returns a list containing all possible words.
  
      :param word: str, the word to replace
      :param pos: str, the pos of the word to replace
      :param n: the number of returned words
      :return: a candidates list
      """
      return self.sample_num(self.wordnet_candidates, n)
  
file_path: textflint/textflint/generation/transformation/POS/multi_pos_swap.py
imports: from ....input.component.sample import POSSample
  from ...transformation import WordSubstitute
label_desc: Use image node_id 5 for calling the SwapMultiPOS obj's underlying member method code with example usage: obj._get_candidates(word, pos, n) and returns: self