code: def test_eq():
      # Test headers compare properly
      hdr = MGHHeader()
      hdr2 = MGHHeader()
      assert hdr == hdr2
      hdr.set_data_shape((2, 3, 4))
      assert hdr != hdr2
      hdr2.set_data_shape((2, 3, 4))
      assert hdr == hdr2
  
imports: import io
  import os
  import pathlib
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from ...None import imageglobals
  from ...fileholders import FileHolder
  from ...openers import ImageOpener
  from ...spatialimages import HeaderDataError
  from ...testing import data_path
  from ...tests import test_spatialimages
  from ...tests import test_wrapstruct
  from ...tmpdirs import InTemporaryDirectory
  from ...volumeutils import sys_is_le
  from ...wrapstruct import WrapStructError
  from ..None import load, save
  from ..mghformat import MGHError, MGHHeader, MGHImage
label_desc: Use image node_id 11 for calling a global function with example usage: test_eq() without return types