code: def get_data(self, element, ranges, style, **kwargs):
      if not element._unique:
          self.param.warning(
              "HeatMap element index is not unique,  ensure you "
              "aggregate the data before displaying it, e.g. "
              "using heatmap.aggregate(function=np.mean). "
              "Duplicate index values have been dropped."
          )
  
      gridded = element.gridded
      xdim, ydim = gridded.dimensions()[:2]
      data = gridded.dimension_values(2, flat=False)
  
      xtype = gridded.interface.dtype(gridded, xdim)
      if xtype.kind in "SUO":
          xvals = np.arange(data.shape[1] + 1) - 0.5
      else:
          xvals = gridded.interface.coords(
              gridded, xdim, edges=True, ordered=True
          )
  
      ytype = gridded.interface.dtype(gridded, ydim)
      if ytype.kind in "SUO":
          yvals = np.arange(data.shape[0] + 1) - 0.5
      else:
          yvals = gridded.interface.coords(
              gridded, ydim, edges=True, ordered=True
          )
  
      if self.invert_axes:
          xvals, yvals = yvals, xvals
          data = data.T
  
      return [dict(x=xvals, y=yvals, z=data)]
  
file_path: holoviews/holoviews/plotting/plotly/raster.py
imports: import numpy
  import param
  from ...core.options import SkipRendering
  from ...core.util import isfinite
  from ...element import Image, Raster
  from ..mixins import HeatMapMixin
  from .element import ColorbarPlot
label_desc: Use image node_id 2 for calling the HeatMapPlot obj's underlying member method code with example usage: obj.get_data(element, ranges, style) and returns: list