code: def get_binned_orientation(latents: np.ndarray) -> int:
      """
      Return orientation of the sprite, binned in 16 different classes.
  
      The original x position is given as a float between 0.0 and 2*pi.
      We transform it so that each bucket is as evenly filled as possible.
      """
      max_angle = 2 * math.pi
      nb_buckets = 16
      orientation = latents[3]
      binned_orientation = np.clip(
          np.floor(orientation / max_angle * nb_buckets),
          0,
          nb_buckets - 1,
      )
      return int(binned_orientation)
  
imports: import importlib.util
  import math
  import os
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_binned_orientation(latents) and returns: int