code: def _setNodeData(self, name, metadata, data, channel=None):
          
          nodeChannel = None
          if name in metadata:
              nodeChannelList = metadata[name]
              if len(nodeChannelList) > 1:
                  nodeChannel = channel if channel is not None else nodeChannelList[0]
              elif len(nodeChannelList) == 1:
                  nodeChannel = nodeChannelList[0]
              if nodeChannel is not None and nodeChannel in self.CHANNELS:
                  return self._hmchannels[nodeChannel].setValue(name, data)
  
          LOG.error("HMDevice.setNodeData: %s not found with value %s on %i" %
                    (name, data, nodeChannel))
          return False
docs: Returns a data point from data