class_docstr: Transforms an input by replacing its number word
  
  Exmaple::
  
  {
      sentence1: Every people has two hands.
      sentence2: There are five hands with all of us.
      label: 0
  }
docstr: Transform data sample to a list of Sample.
  
  :param ~SMSample sample: Data sample for augmentation
  :param int n: Default is 1. MAX number of unique augmented output
  :param **kwargs:
  :return: Augmented data
docstr_tok: ["Transform","data","sample","to","a","list","of","Sample",".",":","param","~SMSample","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 ~SMSample 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/SM/swap_num.py
imports: from ..transformation import Transformation
  from ....common.utils.num_word import _get_contradictory_hypothesis
label_desc: Use image node_id 3 for calling the SwapNum obj's underlying member method code with example usage: obj.transform(sample, n) and returns: unknown, list