code: def test_point_to_dual_quaternion_preset(self):
      points = test_helpers.generate_preset_test_translations()
      dual_quaternions = dual_quaternion.point_to_dual_quaternion(
          points
      )
  
      ones_vector = tf.ones_like(points)[..., 0]
      zeros_vector = tf.zeros(
          tf.concat((tf.shape(points)[0:-1], [4]), -1),
          dtype=points.dtype,
      )
  
      self.assertAllEqual(dual_quaternions[..., 0], ones_vector)
      self.assertAllEqual(dual_quaternions[..., 1:5], zeros_vector)
      self.assertAllEqual(dual_quaternions[..., 5:8], points)
  
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.geometry.transformation import dual_quaternion
  from tensorflow_graphics.geometry.transformation import quaternion
  from tensorflow_graphics.geometry.transformation import rotation_matrix_3d
  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 DualQuaternionTest obj's underlying member method code with example usage: obj.test_point_to_dual_quaternion_preset() without return types