code: def channels_to_rgb(X, warp=True):
      assert (X >= 0).all()
  
      K = X.shape[-1]
  
      rgb = 0
      for i in range(K):
          ang = 360 * i / K
          color = hue_to_rgb(ang, warp=warp)
          color = color[tuple(None for _ in range(len(X.shape) - 1))]
          rgb += X[..., i, None] * color
  
      return rgb
  
file_path: lucid/lucid/scratch/rl_util/util.py
imports: import numpy
  import tensorflow
  import scipy.ndimage
  import lucid.optvis.render
  from lucid.misc.io.collapse_channels import hue_to_rgb
label_desc: Use image node_id 5 for calling a global function with example usage: channels_to_rgb(X, warp) and returns: rgb