code: def test_rasterize_batch_view_only(self):
      triangles = np.array(((0, 1, 2),), np.int32)
      (
          vertices,
          view_projection_matrix,
      ) = _generate_vertices_and_view_matrices()
      vertices = np.array([vertices[0], vertices[0]], dtype=np.float32)
      predicted_fb = _proxy_rasterize(
          vertices, triangles, view_projection_matrix
      )
      self.assertAllEqual(
          predicted_fb.foreground_mask[0, ...],
          tf.ones_like(predicted_fb.foreground_mask[0, ...]),
      )
      self.assertAllEqual(
          predicted_fb.foreground_mask[1, ...],
          tf.zeros_like(predicted_fb.foreground_mask[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 4 for calling the RasterizationBackendTest obj's underlying member method code with example usage: obj.test_rasterize_batch_view_only() without return types