code: def test_funcs():
      class OldNib:
          def get_header(self):
              return 1
  
          def get_affine(self):
              return np.eye(4)
  
          _data = 3
  
      class NewNib:
          header = 1
          affine = np.eye(4)
          dataobj = 3
  
      for img in OldNib(), NewNib():
          assert get_header(img) == 1
          assert_array_equal(get_affine(img), np.eye(4))
          assert get_dataobj(img) == 3
  
imports: import nibabel
  import numpy
  from numpy.testing import assert_array_equal
  from ..nibcompat import get_affine, get_dataobj, get_header, get_unscaled_data
label_desc: Use image node_id 1 for calling a global function with example usage: test_funcs() and returns: int, np