code: def test__eq__(self):
      # Test equal and not equal
      hdr1 = self.header_class()
      hdr2 = self.header_class()
      assert hdr1 == hdr2
      self._set_something_into_hdr(hdr1)
      assert hdr1 != hdr2
      self._set_something_into_hdr(hdr2)
      assert hdr1 == hdr2
      # REMOVED as_byteswapped() test
      # Check comparing to funny thing says no
      assert hdr1 != None
      assert hdr1 != 1
  
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 4 for calling the TestMGHHeader obj's underlying member method code with example usage: obj.test__eq__() without return types