code: def test_dev_version():
      # Test that a dev version doesn't trigger deprecation error
  
      @deprecate_with_version("foo", until="2.0")
      def func():
          return 99
  
      try:
          pkg_info.cmp_pkg_version.__defaults__ = ("2.0dev",)
          # No error, even though version is dev version of current
          with pytest.deprecated_call():
              assert func() == 99
      finally:
          pkg_info.cmp_pkg_version.__defaults__ = ("2.0",)
  
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 5 for calling a global function with example usage: test_dev_version() and returns: int