code: def test_check_img_shapes():
      affine = np.array(
          [
              [1.0, 0.0, 0.0, -98.0],
              [0.0, 1.0, 0.0, -134.0],
              [0.0, 0.0, 1.0, -72.0],
              [0.0, 0.0, 0.0, 1.0],
          ]
      )
  
      data = 255 * np.random.rand(197, 233, 189)
      data1 = 255 * np.random.rand(197, 233, 189)
      images = [(data, affine), (data1, affine)]
      npt.assert_equal(check_img_shapes(images), True)
  
      data1 = 255 * np.random.rand(200, 233, 189)
      images = [(data, affine), (data1, affine)]
      npt.assert_equal(check_img_shapes(images), False)
  
imports: import warnings
  import numpy
  import numpy.testing
  from dipy.testing import check_for_warnings
  from dipy.viz.horizon.util import check_img_dtype, check_img_shapes
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_img_shapes() without return types