docstr: Tests that a quaternion maps to correct matrix.
docstr_tok: ["Tests","that","a","quaternion","maps","to","correct","matrix","."]
code: def test_from_quaternion_preset(self):
      """Tests that a quaternion maps to correct matrix."""
      preset_quaternions = (
          test_helpers.generate_preset_test_quaternions()
      )
  
      preset_matrices = (
          test_helpers.generate_preset_test_rotation_matrices_3d()
      )
  
      self.assertAllClose(
          preset_matrices,
          rotation_matrix_3d.from_quaternion(preset_quaternions),
      )
  
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 30 for calling the RotationMatrix3dTest obj's underlying member method code with example usage: obj.test_from_quaternion_preset() without return types