code: def init_layout(self, key, element, ranges, **kwargs):
      layout = super().init_layout(key, element, ranges)
      gridded = element.gridded
      xdim, ydim = gridded.dimensions()[:2]
  
      if self.invert_axes:
          xaxis, yaxis = ("yaxis", "xaxis")
      else:
          xaxis, yaxis = ("xaxis", "yaxis")
  
      shape = gridded.interface.shape(gridded, gridded=True)
  
      xtype = gridded.interface.dtype(gridded, xdim)
      if xtype.kind in "SUO":
          layout[xaxis]["tickvals"] = np.arange(shape[1])
          layout[xaxis]["ticktext"] = gridded.dimension_values(
              0, expanded=False
          )
  
      ytype = gridded.interface.dtype(gridded, ydim)
      if ytype.kind in "SUO":
          layout[yaxis]["tickvals"] = np.arange(shape[0])
          layout[yaxis]["ticktext"] = gridded.dimension_values(
              1, expanded=False
          )
      return layout
  
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 1 for calling the HeatMapPlot obj's underlying member method code with example usage: obj.init_layout(key, element, ranges) and returns: layout