class_docstr: Generate extra text for AbsaAddDiff,
  and dataset type is assigned in configure.
docstr: Generate samples by a list of transformation methods.
  
  :param dataset: the input dataset
  :return: (original samples, new samples, generated function string)
docstr_tok: ["Generate","samples","by","a","list","of","transformation","methods",".",":","param","dataset",":","the","input","dataset",":","return",":","(","original","samples",",","new","samples",",","generated","function","string",")"]
code: def generate_by_transformations(self, dataset, **kwargs):
      r"""
      Generate samples by a list of transformation methods.
  
      :param dataset: the input dataset
      :return: (original samples, new samples, generated function string)
      """
      self.prepare(dataset)
  
      for trans_obj in self._get_flint_objs(
          self.transform_methods,
          TASK_TRANSFORMATION_PATH,
          ALLOWED_TRANSFORMATIONS,
      ):
          # initialize current index of dataset
          dataset.init_iter()
  
          logger.info("******Start {0}!******".format(trans_obj))
          generated_samples = dataset.new_dataset()
          original_samples = dataset.new_dataset()
  
          for sample in tqdm(dataset):
              # default return list of samples
              trans_rst = trans_obj.transform(
                  sample,
                  n=self.max_trans,
                  field=self.fields,
                  extra_text=self.extra_text,
              )
              if trans_rst:
                  generated_samples.extend(trans_rst)
                  original_samples.append(sample)
  
          yield original_samples, generated_samples, trans_obj.__repr__()
          logger.info("******Finish {0}!******".format(trans_obj))
  
file_path: textflint/textflint/generation/generator/absa_generator.py
imports: from tqdm import tqdm
  from .generator import Generator
  from ...common.utils.logger import logger
  from ...input.component.sample import ABSASample
  from ..transformation.transformation import Transformation
  from ...common.utils.load import absa_dict_loader
  from ...common.utils.install import download_if_needed
  from ...common.settings import TASK_TRANSFORMATION_PATH, ALLOWED_TRANSFORMATIONS, TASK_SUBPOPULATION_PATH, ALLOWED_SUBPOPULATIONS, ABSA_TRAIN_RESTAURANT_PATH, ABSA_TRAIN_LAPTOP_PATH
label_desc: Use image node_id 4 for calling the ABSAGenerator obj's underlying member method code with example usage: obj.generate_by_transformations(dataset) without return types