code: def test_default_types():
      # Test that variable types are same in loaded and default instances
      for fname in datafiles:
          img = load(fname)
          # GiftiImage
          assert_default_types(img)
          # GiftiMetaData
          assert_default_types(img.meta)
          # GiftiNVPairs - Remove in NIB6
          with pytest.warns(DeprecationWarning):
              for nvpair in img.meta.data:
                  assert_default_types(nvpair)
          # GiftiLabelTable
          assert_default_types(img.labeltable)
          # GiftiLabel elements can be None or float; skip
          # GiftiDataArray
          for darray in img.darrays:
              assert_default_types(darray)
              # GiftiCoordSystem
              assert_default_types(darray.coordsys)
              # GiftiMetaData
              assert_default_types(darray.meta)
              # GiftiNVPairs - Remove in NIB6
              with pytest.warns(DeprecationWarning):
                  for nvpair in darray.meta.data:
                      assert_default_types(nvpair)
  
imports: import shutil
  import sys
  import warnings
  from os.path import basename, dirname
  from os.path import join
  from unittest import mock
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from ...loadsave import load, save
  from ...nifti1 import xform_codes
  from ...testing import clear_and_catch_warnings, suppress_warnings
  from ...tmpdirs import InTemporaryDirectory
  from ..None import gifti
  from ..parse_gifti_fast import GiftiImageParser, GiftiParseError
  from ..util import gifti_endian_codes
label_desc: Use image node_id 2 for calling a global function with example usage: test_default_types() without return types