docstr: Checks that render returns the expected value.
docstr_tok: ["Checks","that","render","returns","the","expected","value","."]
code: def test_render_preset(self):
      """Checks that render returns the expected value."""
  
      image_rays = np.zeros((128, 128, 64, 1))
      image_rays[32:96, 32:96, 16:32, :] = 1
      distances = np.zeros((128, 128, 64)) + 1.5
      target_image = np.zeros((128, 128, 1))
      target_image[32:96, 32:96, :] = 1
      rendered_image, *_ = ray_density.compute_density(
          image_rays, distances
      )
      self.assertAllClose(rendered_image, target_image)
  
file_path: graphics/tensorflow_graphics/rendering/volumetric/tests/ray_density_test.py
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  from tensorflow_graphics.rendering.volumetric import ray_density
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 4 for calling the RayDensityTest obj's underlying member method code with example usage: obj.test_render_preset() without return types