docstr: Assert histogram shares colormapper
docstr_tok: ["Assert","histogram","shares","colormapper"]
code: def test_side_histogram_cmapper(self):
      """Assert histogram shares colormapper"""
      x, y = np.mgrid[-50:51, -50:51] * 0.1
      img = Image(np.sin(x**2 + y**2), bounds=(-1, -1, 1, 1))
      plot = bokeh_renderer.get_plot(img.hist())
      plot.initialize_plot()
      adjoint_plot = next(iter(plot.subplots.values()))
      main_plot = adjoint_plot.subplots["main"]
      right_plot = adjoint_plot.subplots["right"]
      self.assertIs(
          main_plot.handles["color_mapper"],
          right_plot.handles["color_mapper"],
      )
      self.assertEqual(main_plot.handles["color_dim"], img.vdims[0])
  
imports: import datetime
  import numpy
  from bokeh.models import CategoricalColorMapper, DatetimeAxis, LinearColorMapper
  from holoviews.core.overlay import NdOverlay
  from holoviews.element import Dataset, Histogram, Image, Points
  from holoviews.operation import histogram
  from holoviews.plotting.bokeh.util import property_to_dict
  from ...utils import LoggingComparisonTestCase
  from .test_plot import TestBokehPlot, bokeh_renderer
label_desc: Use image node_id 2 for calling the TestSideHistogramPlot obj's underlying member method code with example usage: obj.test_side_histogram_cmapper() without return types