class_docstr: Transforms an input by replacing its antonym
  
  Exmaple::
  
  {
      sentence1: 我喜欢这本书。
      sentence2: 这本书是我讨厌的。
      label: 0
  }
docstr: Transform data sample to a list of Sample.
  
  :param ~SMCNSample sample: Data sample for augmentation
  :param int n: Default is 1. MAX number of unique augmented output
  :param **kwargs:
  :return: Augmented data
code: def transform(self, sample, n=1, **kwargs):
      r"""
      Transform data sample to a list of Sample.
  
      :param ~SMCNSample sample: Data sample for augmentation
      :param int n: Default is 1. MAX number of unique augmented output
      :param **kwargs:
      :return: Augmented data
  
      """
      transform_results = self._transform(sample, **kwargs)
  
      if transform_results:
          return [
              data for data in transform_results if not data.is_origin
          ]
      else:
          return []
  
file_path: textflint/textflint/generation/transformation/SMCN/swap_word.py
imports: from textflint.generation.transformation.UTCN.cn_get_antonym import CnAntonym
  from textflint.input.component.sample.utcn_sample import UTCnSample
  from ..transformation import Transformation
label_desc: Use image node_id 3 for calling the SwapWord obj's underlying member method code with example usage: obj.transform(sample, n) and returns: unknown, list