docstr: Renders a simple colored cube.
docstr_tok: ["Renders","a","simple","colored","cube","."]
code: def test_renders_colored_cube(self, enable_cull_face):
      """Renders a simple colored cube."""
      num_layers = 1
      rasterized = rasterization_backend.rasterize(
          self.cube_vertex_positions,
          self.cube_triangles,
          self.projection,
          (self.image_width, self.image_height),
          num_layers=num_layers,
          enable_cull_face=enable_cull_face,
          backend=rasterization_backend.RasterizationBackends.CPU,
      ).layer(0)
  
      vertex_rgb = self.cube_vertex_positions * 0.5 + 0.5
      vertex_rgba = tf.concat([vertex_rgb, tf.ones([1, 8, 1])], axis=-1)
      rendered = interpolate.interpolate_vertex_attribute(
          vertex_rgba, rasterized
      ).value
  
      face_culling_num = 1 if enable_cull_face else 0
      baseline_image = rasterization_test_utils.load_baseline_image(
          "Unlit_Cube_0_%d.png" % face_culling_num, rendered.shape
      )
  
      (
          images_near,
          error_message,
      ) = rasterization_test_utils.compare_images(
          self, baseline_image, rendered
      )
      self.assertTrue(images_near, msg=error_message)
  
file_path: graphics/tensorflow_graphics/rendering/tests/interpolate_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from six.moves import range
  import tensorflow
  from tensorflow_graphics.rendering import interpolate
  from tensorflow_graphics.rendering 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 2 for calling the RasterizeTest obj's underlying member method code with example usage: obj.test_renders_colored_cube(enable_cull_face) without return types