code: def get_data(self, element, ranges, style):
      xdim, ydim = element.kdims
      aggregate = element.gridded
  
      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."
          )
  
      data = aggregate.dimension_values(2, flat=False)
      data = np.ma.array(data, mask=np.logical_not(np.isfinite(data)))
      if self.invert_axes:
          xdim, ydim = ydim, xdim
          data = data.T[::-1, ::-1]
  
      xtype = aggregate.interface.dtype(aggregate, xdim)
      if xtype.kind in "SUO":
          xvals = np.arange(data.shape[1] + 1) - 0.5
      else:
          xvals = aggregate.dimension_values(xdim, expanded=False)
          xvals = GridInterface._infer_interval_breaks(xvals)
  
      ytype = aggregate.interface.dtype(aggregate, ydim)
      if ytype.kind in "SUO":
          yvals = np.arange(data.shape[0] + 1) - 0.5
      else:
          yvals = aggregate.dimension_values(ydim, expanded=False)
          yvals = GridInterface._infer_interval_breaks(yvals)
  
      xfactors = list(ranges.get(xdim.name, {}).get("factors", []))
      yfactors = list(ranges.get(ydim.name, {}).get("factors", []))
      xticks, yticks = self._compute_ticks(
          element, xvals, yvals, xfactors, yfactors
      )
  
      style["xfactors"] = xfactors
      style["yfactors"] = yfactors
  
      if self.show_values:
          style["annotations"] = self._annotate_values(
              element.gridded, xvals, yvals
          )
      vdim = element.vdims[0]
      self._norm_kwargs(element, ranges, style, vdim)
      if "vmin" in style:
          style["clim"] = style.pop("vmin"), style.pop("vmax")
      return (
          (xvals, yvals, data),
          style,
          {"xticks": xticks, "yticks": yticks},
      )
  
imports: from itertools import product
  import numpy
  import param
  from matplotlib.collections import LineCollection, PatchCollection
  from matplotlib.patches import Circle, Wedge
  from ...core.data import GridInterface
  from ...core.spaces import HoloMap
  from ...core.util import dimension_sanitizer, is_nan
  from ..mixins import HeatMapMixin
  from .element import ColorbarPlot
  from .raster import QuadMeshPlot
  from .util import filter_styles
label_desc: Use image node_id 7 for calling the HeatMapPlot obj's underlying member method code with example usage: obj.get_data(element, ranges, style) and returns: xvals,  yvals,  data,  style,  dict