class_docstr: An abstract class for transforming a sequence of text to produce a list of
  potential adversarial example.
class_docstr_tok: ["An","abstract","class","for","transforming","a","sequence","of","text","to","produce","a","list","of","potential","adversarial","example","."]
docstr: Returns a list of all possible transformations for ``component``.
  
  :param ~textflint.input.component.sample.Sample sample:
      Data sample for augmentation.
  :param int n: Default is 5. MAx number of unique augmented output.
  :param str field: Indicate which field to apply transformations.
  :param dict **kwargs: other auxiliary params.
  :return: list of Sample
docstr_tok: ["Returns","a","list","of","all","possible","transformations","for","``","component","``",".",":","param","~textflint.input.component.sample.Sample","sample",":","Data","sample","for","augmentation",".",":","param","int","n",":","Default","is","5",".","MAx","number","of","unique","augmented","output",".",":","param","str","field",":","Indicate","which","field","to","apply","transformations",".",":","param","dict","*","*","kwargs",":","other","auxiliary","params",".",":","return",":","list","of","Sample"]
code: def _transform(
      self, sample, n=1, field="x", split_by_space=False, **kwargs
  ):
      r"""
      Returns a list of all possible transformations for ``component``.
  
      :param ~textflint.input.component.sample.Sample sample:
          Data sample for augmentation.
      :param int n: Default is 5. MAx number of unique augmented output.
      :param str field: Indicate which field to apply transformations.
      :param dict **kwargs: other auxiliary params.
      :return: list of Sample
  
      """
      raise NotImplementedError
  
file_path: textflint/textflint/generation/transformation/transformation.py
imports: import random
  from abc import ABC, abstractmethod
  from ...common.utils import logger
  from ...common.utils.list_op import trade_off_sub_words
  from ...common.utils.error import FlintError
  from ...common.preprocess.en_processor import EnProcessor
  from ...common.preprocess.cn_processor import CnProcessor
label_desc: Use image node_id 4 for calling the Transformation obj's underlying member method code with example usage: obj._transform(sample, n, field, split_by_space) without return types