code: def test_image_spec(self, args_list, args_dict, expected):
      image_data = args_list[0]
      image_data.flags.writeable = False
  
      spec = geom_imshow(*args_list, **args_dict)
      assert spec.as_dict() == expected
  
imports: import numpy
  import pytest
  from lets_plot.plot.geom_imshow_ import geom_imshow
  from test_geom_imshow_util import _image_spec, _image_bbox
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.test_image_spec(args_list, args_dict, expected) without return types