docstr: Tests that is_valid works as intended.
docstr_tok: ["Tests","that","is_valid","works","as","intended","."]
code: def test_is_valid_random(self):
      """Tests that is_valid works as intended."""
      random_euler_angle = (
          test_helpers.generate_random_test_euler_angles()
      )
      tensor_tile = random_euler_angle.shape[:-1]
  
      rotation_matrix = rotation_matrix_3d.from_euler(
          random_euler_angle
      )
      pred_normalized = rotation_matrix_3d.is_valid(rotation_matrix)
  
      with self.subTest(name="all_normalized"):
          self.assertAllEqual(
              pred_normalized,
              np.ones(shape=tensor_tile + (1,), dtype=bool),
          )
  
      with self.subTest(name="non_orthonormal"):
          test_matrix = np.array(
              [[2.0, 0.0, 0.0], [0.0, 0.5, 0], [0.0, 0.0, 1.0]]
          )
          pred_normalized = rotation_matrix_3d.is_valid(test_matrix)
  
          self.assertAllEqual(
              pred_normalized, np.zeros(shape=(1,), dtype=bool)
          )
  
      with self.subTest(name="negative_orthonormal"):
          test_matrix = np.array(
              [[1.0, 0.0, 0.0], [0.0, -1.0, 0.0], [0.0, 0.0, 1.0]]
          )
          pred_normalized = rotation_matrix_3d.is_valid(test_matrix)
  
          self.assertAllEqual(
              pred_normalized, np.zeros(shape=(1,), dtype=bool)
          )
  
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.geometry.transformation import axis_angle
  from tensorflow_graphics.geometry.transformation import quaternion
  from tensorflow_graphics.geometry.transformation import rotation_matrix_3d
  from tensorflow_graphics.geometry.transformation.tests import test_data
  from tensorflow_graphics.geometry.transformation.tests import test_helpers
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 40 for calling the RotationMatrix3dTest obj's underlying member method code with example usage: obj.test_is_valid_random() without return types