code: def generate_random_test_dual_quaternions():
      """Generates random test dual quaternions."""
      angles = generate_random_test_euler_angles()
      random_quaternion_real = quaternion.from_euler(angles)
  
      min_translation = -3.0
      max_translation = 3.0
      translations = np.random.uniform(
          min_translation, max_translation, angles.shape
      )
  
      translations_quaternion_shape = np.asarray(translations.shape)
      translations_quaternion_shape[-1] = 1
      translations = np.concatenate(
          (translations / 2.0, np.zeros(translations_quaternion_shape)),
          axis=-1,
      )
  
      random_quaternion_translation = tf.convert_to_tensor(
          value=translations
      )
  
      random_quaternion_dual = quaternion.multiply(
          random_quaternion_translation, random_quaternion_real
      )
  
      random_dual_quaternion = tf.concat(
          (random_quaternion_real, random_quaternion_dual), axis=-1
      )
  
      return random_dual_quaternion
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import math
  import numpy
  from scipy import stats
  from six.moves import range
  import tensorflow.compat.v2
  from tensorflow_graphics.geometry.transformation import axis_angle
  from tensorflow_graphics.geometry.transformation import quaternion
  from tensorflow_graphics.geometry.transformation import rotation_matrix_2d
  from tensorflow_graphics.geometry.transformation import rotation_matrix_3d
label_desc: Use image node_id 9 for calling a global function with example usage: generate_random_test_dual_quaternions() and returns: random_dual_quaternion