class_docstr: Attributes:
    position (vec3d): the (x, y, z) position of the object.
    quaternion (vec4d): a (W, X, Y, Z) quaternion for describing the rotation.
    up (str): which direction to consider as "up" (required for look_at).
    front (str): which direction to consider as "front" (required for look_at).
docstr: Returns the rotation matrix corresponding to self.quaternion.
docstr_tok: ["Returns","the","rotation","matrix","corresponding","to","self.quaternion","."]
code: def rotation_matrix(self):
      """Returns the rotation matrix corresponding to self.quaternion."""
      return pyquat.Quaternion(*self.quaternion).rotation_matrix
  
imports: import itertools
  import numpy
  import pyquaternion
  import traitlets
  from typing import Optional, Union, Tuple
  from kubric.core import traits
  from kubric.core import assets
  from kubric.core import materials
  from kubric.kubric_typing import ArrayLike
label_desc: Use image node_id 3 for calling the Object3D obj's underlying member method code with example usage: obj.rotation_matrix() and returns: pyquat