code: def test_transform(self):
      extra_text = {
          "positive": [
              ("apple", ["apple is good"]),
              ("orange", ["orange is good"]),
              ("banana", ["banana is good"]),
          ],
          "negative": [
              ("apple", ["apple is not good"]),
              ("orange", ["orange is not good"]),
              ("banana", ["banana is not good"]),
          ],
          "neutral": [
              ("apple", ["apple is red"]),
              ("orange", ["orange is orange"]),
              ("banana", ["banana is yellow"]),
          ],
      }
      trans = AddDiff.transform(
          absa_sample, n=1, field="sentence", extra_text=extra_text
      )
  
      term_id = [idx for idx in data["term_list"]]
      for i, trans_sample in enumerate(trans):
          trans_data = trans_sample.dump()
          ori_sentence = data["sentence"]
          trans_sentence = trans_data["sentence"]
          ori_polarity = data["term_list"][term_id[i]]["polarity"]
          ori_opinion_words = data["term_list"][term_id[i]][
              "opinion_words"
          ]
          trans_id = trans_data["trans_id"]
          trans_polarity = trans_data["term_list"][trans_id]["polarity"]
          trans_opinion_words = trans_data["term_list"][trans_id][
              "opinion_words"
          ]
          self.assertTrue(ori_sentence != trans_sentence)
          self.assertTrue(ori_polarity == trans_polarity)
          self.assertTrue(ori_opinion_words == trans_opinion_words)
  
imports: import unittest
  from textflint.generation.transformation.ABSA.add_diff import AddDiff
  from textflint.input.component.sample.absa_sample import ABSASample
label_desc: Use image node_id 1 for calling the TestAddDiff obj's underlying member method code with example usage: obj.test_transform() without return types