code: def test_inference_mask_generation_no_point(self):
      model = TFSamModel.from_pretrained("facebook/sam-vit-base")
      processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
  
      raw_image = prepare_image()
      inputs = processor(images=raw_image, return_tensors="tf")
  
      outputs = model(**inputs)
      scores = tf.squeeze(outputs.iou_scores)
      masks = outputs.pred_masks[0, 0, 0, 0, :3]
      self.assertTrue(
          np.allclose(scores[-1].numpy(), np.array(0.4515), atol=2e-4)
      )
      self.assertTrue(
          np.allclose(
              masks.numpy(),
              np.array([-4.1807, -3.4949, -3.4483]),
              atol=1e-2,
          )
      )
  
imports: from __future__ import annotations
  import inspect
  import unittest
  import numpy
  import requests
  from transformers import SamConfig, SamMaskDecoderConfig, SamPromptEncoderConfig, SamVisionConfig
  from transformers.testing_utils import require_tf, slow
  from transformers.utils import is_tf_available, is_vision_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, floats_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 1 for calling the TFSamModelIntegrationTest obj's underlying member method code with example usage: obj.test_inference_mask_generation_no_point() without return types