code: def _euler_to_quat(euler_angles):
      """Convert three (euler) angles around XYZ to a single quaternion."""
      q1 = pyquat.Quaternion(
          axis=[1.0, 0.0, 0.0], angle=euler_angles[0]
      )
      q2 = pyquat.Quaternion(
          axis=[0.0, 1.0, 0.0], angle=euler_angles[1]
      )
      q3 = pyquat.Quaternion(
          axis=[0.0, 0.0, 1.0], angle=euler_angles[2]
      )
      return tuple(q3 * q2 * q1)
  
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 6 for calling a global function with example usage: _euler_to_quat(euler_angles) and returns: tuple