docstr: Tests that the shape exceptions are properly raised.
docstr_tok: ["Tests","that","the","shape","exceptions","are","properly","raised","."]
code: def test_random_rays_exception_exception_raised(
      self, error_msg, height, width, n_rays, *shapes
  ):
      """Tests that the shape exceptions are properly raised."""
      self.assert_exception_is_raised(
          perspective.random_rays,
          error_msg,
          shapes,
          height=height,
          width=width,
          n_rays=n_rays,
      )
  
imports: import math
  import sys
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.rendering.camera import perspective
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 35 for calling the PerspectiveTest obj's underlying member method code with example usage: obj.test_random_rays_exception_exception_raised(error_msg, height, width, n_rays) without return types