docstr: Tests that that ray is pointing toward the correct location.
docstr_tok: ["Tests","that","that","ray","is","pointing","toward","the","correct","location","."]
code: def test_unproject_ray_random(self):
      """Tests that that ray is pointing toward the correct location."""
      tensor_size = np.random.randint(3)
      tensor_shape = np.random.randint(
          1, 10, size=(tensor_size)
      ).tolist()
      random_point_2d = np.random.normal(size=tensor_shape + [2])
      random_focal = np.random.normal(size=tensor_shape + [2])
      random_principal_point = np.random.normal(size=tensor_shape + [2])
      random_depth = np.random.normal(size=tensor_shape + [1])
  
      point_3d = perspective.unproject(
          random_point_2d,
          random_depth,
          random_focal,
          random_principal_point,
      )
      ray_3d = perspective.ray(
          random_point_2d, random_focal, random_principal_point
      )
      ray_3d = random_depth * ray_3d
  
      self.assertAllClose(point_3d, ray_3d, rtol=1e-3)
  
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 33 for calling the PerspectiveTest obj's underlying member method code with example usage: obj.test_unproject_ray_random() without return types