code: def test_wrong_dimensions():
      imgs = [1, np.ones((5,) * 3), np.ones((5,) * 4)]
      msg = "px.imshow only accepts 2D single-channel, RGB or RGBA images."
      for img in imgs:
          with pytest.raises(ValueError, match=msg):
              _ = px.imshow(img)
  
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 7 for calling a global function with example usage: test_wrong_dimensions() without return types