code: def test_imshow_xarray_slicethrough():
      img = np.random.random((8, 9, 10))
      da = xr.DataArray(img, dims=["dim_0", "dim_1", "dim_2"])
      fig = px.imshow(da, animation_frame="dim_0")
      # Dimensions are used for axis labels and coordinates
      assert fig.layout.xaxis.title.text == "dim_2"
      assert fig.layout.yaxis.title.text == "dim_1"
      assert np.all(
          np.array(fig.data[0].x) == np.array(da.coords["dim_2"])
      )
  
imports: import plotly.express
  import numpy
  import pytest
  import xarray
  from PIL import Image
  from io import BytesIO
  import base64
  import datetime
  from plotly.express.imshow_utils import rescale_intensity
label_desc: Use image node_id 13 for calling a global function with example usage: test_imshow_xarray_slicethrough() without return types