code: def map(self, data):
      data = data[self.fieldName]
  
      scaled = fn.clip_array(
          (data - self["Min"]) / (self["Max"] - self["Min"]), 0, 1
      )
      cmap = self.value()
      colors = cmap.map(scaled, mode="float")
  
      mask = np.invert(np.isfinite(data))
      nanColor = self["NaN"]
      nanColor = nanColor.getRgbF()
      colors[mask] = nanColor
  
      return colors
  
imports: from collections import OrderedDict
  import numpy
  from ..None import functions
  from ..None import parametertree
  from ..Qt import QtCore
label_desc: Use image node_id 2 for calling the RangeColorMapItem obj's underlying member method code with example usage: obj.map(data) and returns: colors