code: def test_rgb(self):
      rgb_data = np.random.rand(10, 10, 3)
      rgb = Tiles("") * RGB(
          rgb_data,
          bounds=(
              self.x_range[0],
              self.y_range[0],
              self.x_range[1],
              self.y_range[1],
          ),
      ).opts(opacity=0.5).redim.range(x=self.x_range, y=self.y_range)
  
      fig_dict = plotly_renderer.get_plot_state(rgb)
      # Check dummy trace
      self.assertEqual(fig_dict["data"][1]["type"], "scattermapbox")
      self.assertEqual(fig_dict["data"][1]["lon"], [None])
      self.assertEqual(fig_dict["data"][1]["lat"], [None])
      self.assertEqual(fig_dict["data"][1]["showlegend"], False)
  
      # Check mapbox subplot
      subplot = fig_dict["layout"]["mapbox"]
      self.assertEqual(subplot["style"], "white-bg")
      self.assertEqual(
          subplot["center"],
          {"lat": self.lat_center, "lon": self.lon_center},
      )
  
      # Check rgb layer
      layers = fig_dict["layout"]["mapbox"]["layers"]
      self.assertEqual(len(layers), 1)
      rgb_layer = layers[0]
      self.assertEqual(rgb_layer["below"], "traces")
      self.assertEqual(
          rgb_layer["coordinates"],
          [
              [self.lon_range[0], self.lat_range[1]],
              [self.lon_range[1], self.lat_range[1]],
              [self.lon_range[1], self.lat_range[0]],
              [self.lon_range[0], self.lat_range[0]],
          ],
      )
      self.assertTrue(
          rgb_layer["source"].startswith("data:image/png;base64,iVBOR")
      )
      self.assertEqual(rgb_layer["opacity"], 0.5)
      self.assertEqual(rgb_layer["sourcetype"], "image")
  
file_path: holoviews/holoviews/tests/plotting/plotly/test_rgb.py
imports: import numpy
  import PIL.Image
  import plotly.graph_objs
  from holoviews.element import RGB, Tiles
  from .test_plot import TestPlotlyPlot, plotly_renderer
label_desc: Use image node_id 2 for calling the TestMapboxRGBPlot obj's underlying member method code with example usage: obj.test_rgb() without return types