code: def test_imshow_invalid_compression(level):
      with pytest.raises(ValueError) as msg:
          _ = px.imshow(img_rgb, binary_compression_level=level)
      assert "between 0 and 9" in str(msg.value)
  
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 23 for calling a global function with example usage: test_imshow_invalid_compression(level) without return types