code: def rotate(q, v):
      """Rotate a vector using a quaternion."""
      # Create the quaternion representation of the vector.
      q_v = jnp.concatenate([v, jnp.zeros_like(v[..., :1])], axis=-1)
      return im(multiply(multiply(q, q_v), conjugate(q)))
  
file_path: nerfies/nerfies/quaternion.py
imports: from jax import numpy
  from jax.numpy import linalg
label_desc: Use image node_id 10 for calling a global function with example usage: rotate(q, v) and returns: im