code: def test_zmin_zmax_range_color():
      img = img_gray / 100.0
      fig = px.imshow(img)
      # assert not (fig.layout.coloraxis.cmin or fig.layout.coloraxis.cmax)
      fig1 = px.imshow(img, zmin=0.2, zmax=0.8)
      fig2 = px.imshow(img, range_color=[0.2, 0.8])
      assert fig1 == fig2
      # color_range overrides zmin and zmax
      fig = px.imshow(img, zmin=0.3, zmax=0.9, range_color=[0.2, 0.8])
      assert fig.layout.coloraxis.cmin == 0.2
      assert fig.layout.coloraxis.cmax == 0.8
      # It's possible to pass only zmin OR zmax
      fig = px.imshow(img, zmax=0.8)
      assert fig.layout.coloraxis.cmin == 0.0
      assert fig.layout.coloraxis.cmax == 0.8
  
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 10 for calling a global function with example usage: test_zmin_zmax_range_color() without return types