code: def color_interp(data):
      
      from rasterio.enums import ColorInterp as ci
      modes = {'L': [ci.gray],
               'LA': [ci.gray, ci.alpha],
               'YCbCr': [ci.Y, ci.Cb, ci.Cr],
               'YCbCrA': [ci.Y, ci.Cb, ci.Cr, ci.alpha]}
  
      try:
          mode = ''.join(data['bands'].values)
          return modes[mode]
      except KeyError:
          colors = {'R': ci.red,
                    'G': ci.green,
                    'B': ci.blue,
                    'A': ci.alpha,
                    'C': ci.cyan,
                    'M': ci.magenta,
                    'Y': ci.yellow,
                    'H': ci.hue,
                    'S': ci.saturation,
                    'L': ci.lightness,
                    'K': ci.black,
                    }
          return [colors[band] for band in data['bands'].values]
docs: Get the color interpretation for this image.