code: def conjugate(
      quaternion: type_alias.TensorLike,
      name: str = "quaternion_conjugate",
  ) -> tf.Tensor:
      """Computes the conjugate of a quaternion.
  
      Note:
        In the following, A1 to An are optional batch dimensions.
  
      Args:
        quaternion: A tensor of shape `[A1, ..., An, 4]`, where the last dimension
          represents a normalized quaternion.
        name: A name for this op that defaults to "quaternion_conjugate".
  
      Returns:
        A tensor of shape `[A1, ..., An, 4]`, where the last dimension represents
        a normalized quaternion.
  
      Raises:
        ValueError: If the shape of `quaternion` is not supported.
      """
      with tf.name_scope(name):
          quaternion = tf.convert_to_tensor(value=quaternion)
  
          shape.check_static(
              tensor=quaternion,
              tensor_name="quaternion",
              has_dim_equals=(-1, 4),
          )
  
          xyz, w = tf.split(quaternion, (3, 1), axis=-1)
          return tf.concat((-xyz, w), axis=-1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import List
  from six.moves import range
  import tensorflow
  from tensorflow_graphics.geometry.transformation import rotation_matrix_3d
  from tensorflow_graphics.math import vector
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import export_api
  from tensorflow_graphics.util import safe_ops
  from tensorflow_graphics.util import shape
  from tensorflow_graphics.util import type_alias
label_desc: Use image node_id 3 for calling a global function with example usage: conjugate(quaternion, name) and returns: tf