code: def test_rasterize_batch_vertices_only(self):
      triangles = np.array(((0, 1, 2),), np.int32)
      (
          vertices,
          view_projection_matrix,
      ) = _generate_vertices_and_view_matrices()
      # Use just first view projection matrix.
      view_projection_matrix = [
          view_projection_matrix[0],
          view_projection_matrix[0],
      ]
      predicted_fb = _proxy_rasterize(
          vertices, triangles, view_projection_matrix
      )
      mask = predicted_fb.foreground_mask
      self.assertAllEqual(mask[0, ...], tf.ones_like(mask[0, ...]))
  
      gt_layer_1 = np.zeros(
          (_IMAGE_HEIGHT, _IMAGE_WIDTH, 1), np.float32
      )
      gt_layer_1[_IMAGE_HEIGHT // 2 :, _IMAGE_WIDTH // 2 :, 0] = 1.0
      self.assertAllEqual(mask[1, ...], gt_layer_1)
  
file_path: graphics/tensorflow_graphics/rendering/opengl/tests/rasterization_backend_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.geometry.representation import grid
  from tensorflow_graphics.rendering.opengl import math
  from tensorflow_graphics.rendering.opengl import rasterization_backend
  from tensorflow_graphics.rendering.tests import rasterization_test_utils
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 3 for calling the RasterizationBackendTest obj's underlying member method code with example usage: obj.test_rasterize_batch_vertices_only() without return types