code: def saveState(self):
      items = OrderedDict()
      for item in self:
          itemState = item.saveState(filter="user")
          itemState["field"] = item.fieldName
          items[item.name()] = itemState
      state = {"fields": self.fields, "items": items}
      return state
  
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 7 for calling the ColorMapParameter obj's underlying member method code with example usage: obj.saveState() and returns: state