code: def _interpretValue(self, v):
      if v is not None and not isinstance(v, ColorMap):
          raise TypeError(
              "Cannot set colormap parameter from object %r" % v
          )
      return v
  
file_path: pyqtgraph/pyqtgraph/parametertree/parameterTypes/colormap.py
imports: from ...colormap import ColorMap
  from ...Qt import QtCore
  from ...widgets.GradientWidget import GradientWidget
  from .basetypes import SimpleParameter, WidgetParameterItem
label_desc: Use image node_id 1 for calling the ColorMapParameter obj's underlying member method code with example usage: obj._interpretValue(v) and returns: v