docstr: Tests conversion to matrix.
docstr_tok: ["Tests","conversion","to","matrix","."]
code: def test_from_axis_angle_random(self):
      """Tests conversion to matrix."""
      tensor_shape = np.random.randint(
          1, 10, size=np.random.randint(3)
      ).tolist()
      random_axis = np.random.normal(size=tensor_shape + [3])
      random_axis /= np.linalg.norm(random_axis, axis=-1, keepdims=True)
      random_angle = np.random.normal(size=tensor_shape + [1])
  
      matrix_axis_angle = rotation_matrix_3d.from_axis_angle(
          random_axis, random_angle
      )
      random_quaternion = quaternion.from_axis_angle(
          random_axis, random_angle
      )
      matrix_quaternion = rotation_matrix_3d.from_quaternion(
          random_quaternion
      )
  
      self.assertAllClose(
          matrix_axis_angle, matrix_quaternion, rtol=1e-3
      )
      # Checks that resulting rotation matrices are normalized.
      self.assertAllEqual(
          rotation_matrix_3d.is_valid(matrix_axis_angle),
          np.ones(tensor_shape + [1]),
      )
  
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 10 for calling the RotationMatrix3dTest obj's underlying member method code with example usage: obj.test_from_axis_angle_random() without return types