code: def test_explorer_code_opts():
      da = ds_air_temperature["air"]
      explorer = hvplot.explorer(
          da, x="lon", y="lat", kind="image", opts={"color_levels": 3}
      )
      code = explorer.code
      assert code == dedent(
          """\
          da.hvplot(
              colorbar=True,
              groupby=['time'],
              kind='image',
              x='lon',
              y='lat',
              legend='bottom_right',
              widget_location='bottom',
          ).opts(
              color_levels=3,
          )"""
      )
  
      assert explorer._code_pane.object == dedent(
          """\
          ```python
          da.hvplot(
              colorbar=True,
              groupby=['time'],
              kind='image',
              x='lon',
              y='lat',
              legend='bottom_right',
              widget_location='bottom',
          ).opts(
              color_levels=3,
          )
          ```"""
      )
  
imports: import re
  from textwrap import dedent
  import holoviews
  import pandas
  import hvplot.pandas
  import hvplot.xarray
  import xarray
  import pytest
  from bokeh.sampledata import penguins
  from hvplot.ui import hvDataFrameExplorer, hvGridExplorer
label_desc: Use image node_id 24 for calling a global function with example usage: test_explorer_code_opts() without return types