code: def test_makehead(self):
      for tp in self.test_files:
          head1 = self.module.AFNIHeader.from_fileobj(tp["head"])
          head2 = self.module.AFNIHeader.from_header(head1)
          assert head1 == head2
          with pytest.raises(self.module.AFNIHeaderError):
              self.module.AFNIHeader.from_header(header=None)
          with pytest.raises(self.module.AFNIHeaderError):
              self.module.AFNIHeader.from_header(tp["fname"])
  
file_path: nibabel/nibabel/tests/test_brikhead.py
imports: from os.path import join
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ..None import Nifti1Image, brikhead, load
  from ..testing import assert_data_similar, data_path
  from .test_fileslice import slicer_samples
label_desc: Use image node_id 1 for calling the TestAFNIHeader obj's underlying member method code with example usage: obj.test_makehead() without return types