code: def test_eq():
      hdr = SpatialHeader()
      other = SpatialHeader()
      assert hdr == other
      other = SpatialHeader("u2")
      assert hdr != other
      other = SpatialHeader(shape=(1, 2, 3))
      assert hdr != other
      hdr = SpatialHeader(shape=(1, 2))
      other = SpatialHeader(shape=(1, 2))
      assert hdr == other
      other = SpatialHeader(shape=(1, 2), zooms=(2.0, 3.0))
      assert hdr != other
  
imports: from io import BytesIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from ..None import load
  from ..imageclasses import spatial_axes_first
  from ..spatialimages import HeaderDataError, SpatialHeader, SpatialImage
  from ..testing import bytesio_round_trip, expires, memmap_after_ufunc
  from ..tmpdirs import InTemporaryDirectory
label_desc: Use image node_id 3 for calling a global function with example usage: test_eq() without return types