code: def hue_to_rgb(ang, warp=True):
      """Produce an RGB unit vector corresponding to a hue of a given angle."""
      ang = ang - 360 * (ang // 360)
      colors = np.asarray(
          [
              [1, 0, 0],
              [1, 1, 0],
              [0, 1, 0],
              [0, 1, 1],
              [0, 0, 1],
              [1, 0, 1],
          ]
      )
      colors = colors / np.linalg.norm(colors, axis=1, keepdims=True)
      R = 360 / len(colors)
      n = math.floor(ang / R)
      D = (ang - n * R) / R
  
      if warp:
          # warping the angle away from the primary colors (RGB)
          # helps make equally-spaced angles more visually distinguishable
          adj = lambda x: math.sin(x * math.pi / 2)
          if n % 2 == 0:
              D = adj(D)
          else:
              D = 1 - adj(1 - D)
  
      v = (1 - D) * colors[n] + D * colors[(n + 1) % len(colors)]
      return v / np.linalg.norm(v)
  
imports: import math
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: hue_to_rgb(ang, warp) and returns: unknown