code: def test_NonUniformImage_data_dimensions():
      x = [1.0, 3.0, 10.0]
      y = [1.0, 2.0, 4.0]
  
      with pytest.raises(Exception) as ex:
          NonUniformImage(x, y, x)
      assert "The length of x and y must match the shape of z." in str(
          ex
      )
  
file_path: pyqtgraph/tests/graphicsItems/test_NonUniformImage.py
imports: import numpy
  import pytest
  import pyqtgraph
  import pyqtgraph.functions
  from pyqtgraph.colormap import ColorMap
  from pyqtgraph.graphicsItems.NonUniformImage import NonUniformImage
  from pyqtgraph.Qt import QtTest
  from tests.image_testing import assertImageApproved
label_desc: Use image node_id 3 for calling a global function with example usage: test_NonUniformImage_data_dimensions() without return types