code: def __init__(
      self,
      hidden_size=32,
      input_image_size=24,
      patch_size=2,
      mask_input_channels=4,
      num_point_embeddings=4,
      hidden_act="gelu",
  ):
      self.hidden_size = hidden_size
      self.input_image_size = input_image_size
      self.patch_size = patch_size
      self.mask_input_channels = mask_input_channels
      self.num_point_embeddings = num_point_embeddings
      self.hidden_act = hidden_act
  
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 1 to create a new SamPromptEncoderTester object  with example: obj = SamPromptEncoderTester(hidden_size, input_image_size, patch_size, mask_input_channels, num_point_embeddings, hidden_act)