code: def get_config(self):
      return SamPromptEncoderConfig(
          image_size=self.input_image_size,
          patch_size=self.patch_size,
          mask_input_channels=self.mask_input_channels,
          hidden_size=self.hidden_size,
          num_point_embeddings=self.num_point_embeddings,
          hidden_act=self.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 2 for calling the SamPromptEncoderTester obj's underlying member method code with example usage: obj.get_config() and returns: SamPromptEncoderConfig