class_docstr: ColorMap(pos, color, mapping=ColorMap.CLIP)
  
  ColorMap stores a mapping of specific data values to colors, for example:
  
      | 0.0 → black
      | 0.2 → red
      | 0.6 → yellow
      | 1.0 → white
  
  The colors for intermediate values are determined by interpolating between
  the two nearest colors in RGB color space.
  
  A ColorMap object provides access to the interpolated colors by indexing with a float value:
  ``cm[0.5]`` returns a QColor corresponding to the center of ColorMap `cm`.
docstr: Returns a tuple (stops, colors) containing a list of all stops (ranging 0.0 to 1.0)
  and a list of the associated colors.
  
  The parameter `mode` can be one of
      - `ColorMap.BYTE` or 'byte' to return colors as RGBA tuples in byte format (0 to 255)
      - `ColorMap.FLOAT` or 'float' to return colors as RGBA tuples in float format (0.0 to 1.0)
      - `ColorMap.QCOLOR` or 'qcolor' to return a list of QColors
  
  The default is byte format.
docstr_tok: ["Returns","a","tuple","(","stops",",","colors",")","containing","a","list","of","all","stops","(","ranging","0.0","to","1.0",")","and","a","list","of","the","associated","colors",".","The","parameter","`","mode","`","can","be","one","of","-","`","ColorMap.BYTE","`","or","'byte","'","to","return","colors","as","RGBA","tuples","in","byte","format","(","0","to","255",")","-","`","ColorMap.FLOAT","`","or","'float","'","to","return","colors","as","RGBA","tuples","in","float","format","(","0.0","to","1.0",")","-","`","ColorMap.QCOLOR","`","or","'qcolor","'","to","return","a","list","of","QColors","The","default","is","byte","format","."]
code: def getStops(self, mode=BYTE):
      """
      Returns a tuple (stops, colors) containing a list of all stops (ranging 0.0 to 1.0)
      and a list of the associated colors.
  
      The parameter `mode` can be one of
          - `ColorMap.BYTE` or 'byte' to return colors as RGBA tuples in byte format (0 to 255)
          - `ColorMap.FLOAT` or 'float' to return colors as RGBA tuples in float format (0.0 to 1.0)
          - `ColorMap.QCOLOR` or 'qcolor' to return a list of QColors
  
      The default is byte format.
      """
      if isinstance(mode, str):
          mode = self.enumMap[mode.lower()]
  
      if mode not in self.stopsCache:
          color = self.color
          if mode == self.BYTE and color.dtype.kind == "f":
              color = (color * 255).astype(np.ubyte)
          elif mode == self.FLOAT and color.dtype.kind != "f":
              color = color.astype(float) / 255.0
          elif mode == self.QCOLOR:
              if color.dtype.kind == "f":
                  factory = QtGui.QColor.fromRgbF
              else:
                  factory = QtGui.QColor.fromRgb
              color = [factory(*x.tolist()) for x in color]
          self.stopsCache[mode] = (self.pos, color)
      return self.stopsCache[mode]
  
imports: from collections.abc import Callable, Sequence
  from os import listdir, path
  import numpy
  from .functions import clip_array, clip_scalar, colorDistance, eq, mkColor
  from .Qt import QtCore, QtGui
label_desc: Use image node_id 17 for calling the ColorMap obj's underlying member method code with example usage: obj.getStops(mode) and returns: self