code: def test_inference_mask_generation_two_points_batched(self):
      model = TFSamModel.from_pretrained("facebook/sam-vit-base")
      processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
  
      raw_image = prepare_image()
  
      input_points = [[[400, 650], [800, 650]], [[400, 650]]]
      input_labels = [[1, 1], [1]]
  
      inputs = processor(
          images=[raw_image, raw_image],
          input_points=input_points,
          input_labels=input_labels,
          return_tensors="tf",
      )
  
      outputs = model(**inputs)
      scores = tf.squeeze(outputs.iou_scores)
  
      self.assertTrue(
          np.allclose(
              scores[0][-1].numpy(), np.array(0.9762), atol=1e-4
          )
      )
      self.assertTrue(
          np.allclose(scores[1][-1], np.array(0.9637), atol=1e-4)
      )
  
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 7 for calling the TFSamModelIntegrationTest obj's underlying member method code with example usage: obj.test_inference_mask_generation_two_points_batched() without return types