code: def test_raise_error_on_double_transform_call(self):
      model = AutoModel.from_pretrained(
          "hf-internal-testing/tiny-random-BertModel"
      )
  
      with self.assertRaises(Exception) as cm:
          bt_model = BetterTransformer.transform(model)
          bt_model = BetterTransformer.transform(bt_model)
      self.assertTrue(
          "was called on a model already using Better Transformer"
          in str(cm.exception)
      )
  
file_path: optimum/tests/bettertransformer/test_common.py
imports: import tempfile
  import unittest
  from unittest.mock import patch
  import transformers
  from parameterized import parameterized
  from testing_utils import MODELS_DICT
  from transformers import AutoModel
  from optimum.bettertransformer import BetterTransformer, BetterTransformerManager
  from optimum.pipelines import pipeline
  from optimum.utils.testing_utils import grid_parameters
label_desc: Use image node_id 1 for calling the BetterTransformerIntegrationTests obj's underlying member method code with example usage: obj.test_raise_error_on_double_transform_call() without return types