code: def test_imshow_ranges_image_trace():
      fig = px.imshow(img_rgb, x=[1, 11, 21])
      assert fig.data[0].dx == 10
      assert fig.data[0].x0 == 1
      fig = px.imshow(img_rgb, x=[21, 11, 1])
      assert fig.data[0].dx == -10
      assert fig.data[0].x0 == 21
      assert fig.layout.xaxis.autorange == "reversed"
  
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 18 for calling a global function with example usage: test_imshow_ranges_image_trace() without return types