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 `True` if the gradient has exactly two stops in it: Black at 0.0 and white at 1.0.
docstr_tok: ["Returns","`","True","`","if","the","gradient","has","exactly","two","stops","in","it",":","Black","at","0.0","and","white","at","1.0","."]
code: def isMapTrivial(self):
      """
      Returns `True` if the gradient has exactly two stops in it: Black at 0.0 and white at 1.0.
      """
      if len(self.pos) != 2:
          return False
      if self.pos[0] != 0.0 or self.pos[1] != 1.0:
          return False
      if self.color.dtype.kind == "f":
          return np.all(
              self.color
              == np.array([[0.0, 0.0, 0.0, 1.0], [1.0, 1.0, 1.0, 1.0]])
          )
      else:
          return np.all(
              self.color
              == np.array([[0, 0, 0, 255], [255, 255, 255, 255]])
          )
  
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 20 for calling the ColorMap obj's underlying member method code with example usage: obj.isMapTrivial() and returns: False, False, np, np