code: def test_check_deprecation():
      check_deprecation(dummy_deprecation, "Deprecated")(
          "0.0.1", "0.0.2"
      )
  
file_path: nilearn/nilearn/_utils/tests/test_testing.py
imports: import warnings
  import nibabel
  import numpy
  import pytest
  from nilearn._utils.testing import assert_memory_less_than, check_deprecation, with_memory_profiler, write_imgs_to_path
label_desc: Use image node_id 5 for calling a global function with example usage: test_check_deprecation() without return types