code: def test_image_processor_equivalence(self):
      image_processor = self.get_image_processor()
  
      processor = SamProcessor(image_processor=image_processor)
  
      image_input = self.prepare_image_inputs()
  
      pt_input_feat_extract = image_processor(
          image_input, return_tensors="pt"
      )["pixel_values"].numpy()
      pt_input_processor = processor(
          images=image_input, return_tensors="pt"
      )["pixel_values"].numpy()
  
      tf_input_feat_extract = image_processor(
          image_input, return_tensors="tf"
      )["pixel_values"].numpy()
      tf_input_processor = processor(
          images=image_input, return_tensors="tf"
      )["pixel_values"].numpy()
  
      self.assertTrue(
          np.allclose(pt_input_feat_extract, pt_input_processor)
      )
      self.assertTrue(
          np.allclose(pt_input_feat_extract, tf_input_feat_extract)
      )
      self.assertTrue(
          np.allclose(pt_input_feat_extract, tf_input_processor)
      )
  
imports: import shutil
  import tempfile
  import unittest
  import numpy
  from transformers.testing_utils import is_pt_tf_cross_test, require_tf, require_torch, require_torchvision, require_vision
  from transformers.utils import is_tf_available, is_torch_available, is_vision_available
label_desc: Use image node_id 6 for calling the SamProcessorEquivalenceTest obj's underlying member method code with example usage: obj.test_image_processor_equivalence() without return types