docstr: Tests that the shape exception is raised.
docstr_tok: ["Tests","that","the","shape","exception","is","raised","."]
code: def test_render_shape_exception_raised(self, error_msg, shape):
      """Tests that the shape exception is raised."""
      self.assert_exception_is_raised(
          ray_density.compute_density, error_msg, shape
      )
  
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 2 for calling the RayDensityTest obj's underlying member method code with example usage: obj.test_render_shape_exception_raised(error_msg, shape) without return types