docstr: Checks that assert_normalized function works as expected.
docstr_tok: ["Checks","that","assert_normalized","function","works","as","expected","."]
code: def test_assert_rotation_matrix_normalized_preset(self, dtype):
      """Checks that assert_normalized function works as expected."""
      angles = test_helpers.generate_preset_test_euler_angles().astype(
          dtype
      )
  
      matrix = rotation_matrix_3d.from_euler(angles)
      matrix_rescaled = matrix * 1.01
      matrix_normalized = (
          rotation_matrix_3d.assert_rotation_matrix_normalized(matrix)
      )
      self.evaluate(matrix_normalized)
  
      with self.assertRaises(
          tf.errors.InvalidArgumentError
      ):  # pylint: disable=g-error-prone-assert-raises
          self.evaluate(
              rotation_matrix_3d.assert_rotation_matrix_normalized(
                  matrix_rescaled
              )
          )
  
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 2 for calling the RotationMatrix3dTest obj's underlying member method code with example usage: obj.test_assert_rotation_matrix_normalized_preset(dtype) without return types