code: def test_image_spec(self, params: TestParams):
      params.image_data_0.flags.writeable = False
      params.image_data_1.flags.writeable = False
  
      spec_0 = geom_imshow(
          image_data=params.image_data_0,
          norm=params.normalize,
          show_legend=params.show_legend,
      )
      spec_1 = geom_imshow(
          image_data=params.image_data_1,
          norm=params.normalize,
          show_legend=params.show_legend,
      )
  
      if params.expected_equal:
          assert spec_0.as_dict() == spec_1.as_dict()
      else:
          assert spec_0.as_dict() != spec_1.as_dict()
  
file_path: lets-plot/python-package/test/plot/test_geom_imshow_normalization.py
imports: from typing import NamedTuple
  import numpy
  import pytest
  from lets_plot.plot.geom_imshow_ import geom_imshow
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.test_image_spec(params) without return types