class_docstr: Testing suite for Vision Models - tests all the tests defined in `BetterTransformersTestMixin`
code: def compare_outputs(
      self,
      model_type,
      hf_hidden_states,
      bt_hidden_states,
      atol: float,
      model_name: str,
  ):
      # CLIP returns a 2D tensor
      if model_type in ["clip_text_model", "clip"]:
          self.assert_equal(
              tensor1=hf_hidden_states,
              tensor2=bt_hidden_states,
              atol=atol,
              model_name=model_name,
          )
  
file_path: optimum/tests/bettertransformer/test_vision.py
imports: import unittest
  import requests
  from parameterized import parameterized
  from PIL import Image
  from testing_utils import MODELS_DICT, BetterTransformersTestMixin
  from transformers import AutoFeatureExtractor, AutoProcessor
  from optimum.utils.testing_utils import grid_parameters
label_desc: Use image node_id 6 for calling the BetterTransformersVisionTest obj's underlying member method code with example usage: obj.compare_outputs(model_type, hf_hidden_states, bt_hidden_states, atol, model_name) without return types