code: def interpolate_colormap(values, colormap):
      """Interpolates the colormap given values between 0.0 and 1.0."""
      a = np.floor(values * 255)
      b = (a + 1).clip(max=255)
      f = values * 255.0 - a
      a = a.astype(np.uint16).clip(0, 255)
      b = b.astype(np.uint16).clip(0, 255)
      return (
          colormap[a] + (colormap[b] - colormap[a]) * f[..., np.newaxis]
      )
  
file_path: nerfies/nerfies/visualization.py
imports: import functools
  from matplotlib import cm
  from matplotlib.colors import LinearSegmentedColormap
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: interpolate_colormap(values, colormap) and returns: unknown