docstr: Compares interpolate to quaternion_weights + interpolate_with_weights.
docstr_tok: ["Compares","interpolate","to","quaternion_weights","+","interpolate_with_weights","."]
code: def test_interpolate_with_weights_quaternion_preset(self):
      """Compares interpolate to quaternion_weights + interpolate_with_weights."""
      q1 = self._pick_random_quaternion()
      q2 = q1 + tf.ones_like(q1)
      q1 = tf.nn.l2_normalize(q1, axis=-1)
      q2 = tf.nn.l2_normalize(q2, axis=-1)
  
      weight1, weight2 = slerp.quaternion_weights(q1, q2, 0.25)
      qf = slerp.interpolate_with_weights(q1, q2, weight1, weight2)
      qi = slerp.interpolate(
          q1, q2, 0.25, method=slerp.InterpolationType.QUATERNION
      )
  
      self.assertAllClose(qf, qi, atol=1e-9)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.math.interpolation import slerp
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 5 for calling the SlerpTest obj's underlying member method code with example usage: obj.test_interpolate_with_weights_quaternion_preset() without return types