code: def teardown():
      # Hack nibabel version string back again
      pkg_info.cmp_pkg_version.__defaults__ = (pkg_info.__version__,)
  
file_path: nibabel/nibabel/tests/test_deprecated.py
imports: import warnings
  import pytest
  from nibabel import pkg_info
  from nibabel.deprecated import FutureWarningMixin, ModuleProxy, alert_future_error, deprecate_with_version
  from nibabel.tests.test_deprecator import TestDeprecatorFunc
label_desc: Use image node_id 2 for calling a global function with example usage: teardown() without return types