code: def create_and_check_get_image_features(self, config, pixel_values):
      model = SamModel(config=config)
      model.to(torch_device)
      model.eval()
      with torch.no_grad():
          result = model.get_image_embeddings(pixel_values)
      self.parent.assertEqual(
          result[0].shape, (self.output_channels, 12, 12)
      )
  
imports: import gc
  import unittest
  import requests
  from transformers import SamConfig, SamMaskDecoderConfig, SamPromptEncoderConfig, SamVisionConfig, pipeline
  from transformers.testing_utils import backend_empty_cache, require_torch, slow, torch_device
  from transformers.utils import is_torch_available, is_vision_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, floats_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 5 for calling the SamModelTester obj's underlying member method code with example usage: obj.create_and_check_get_image_features(config, pixel_values) without return types