docstr: Tests that parameters_from_right_handed returns the expected values.
docstr_tok: ["Tests","that","parameters_from_right_handed","returns","the","expected","values","."]
code: def test_parameters_from_right_handed_random(self):
      """Tests that parameters_from_right_handed returns the expected values."""
      tensor_size = np.random.randint(2, 4)
      tensor_shape = np.random.randint(
          2, 5, size=(tensor_size)
      ).tolist()
      vertical_field_of_view_gt = np.random.uniform(
          sys.float_info.epsilon,
          np.pi - sys.float_info.epsilon,
          tensor_shape + [1],
      )
      aspect_ratio_gt = np.random.uniform(0.1, 10.0, tensor_shape + [1])
      near_gt = np.random.uniform(0.1, 100.0, tensor_shape + [1])
      far_gt = near_gt + np.random.uniform(
          0.1, 100.0, tensor_shape + [1]
      )
      projection_matrix = perspective.right_handed(
          vertical_field_of_view_gt, aspect_ratio_gt, near_gt, far_gt
      )
  
      (
          vertical_field_of_view_pred,
          aspect_ratio_pred,
          near_pred,
          far_pred,
      ) = perspective.parameters_from_right_handed(projection_matrix)
  
      with self.subTest(name="vertical_field_of_view"):
          self.assertAllClose(
              vertical_field_of_view_gt, vertical_field_of_view_pred
          )
  
      with self.subTest(name="aspect_ratio"):
          self.assertAllClose(aspect_ratio_gt, aspect_ratio_pred)
  
      with self.subTest(name="near_plane"):
          self.assertAllClose(near_gt, near_pred)
  
      with self.subTest(name="far_plane"):
          self.assertAllClose(far_gt, far_pred)
  
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 3 for calling the PerspectiveTest obj's underlying member method code with example usage: obj.test_parameters_from_right_handed_random() without return types