code: def dummy_deprecation(start_version, end_version):
      warnings.warn(
          f"Deprecated in {start_version}."
          f"and will be removed in version {end_version}.",
          DeprecationWarning,
      )
  
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 4 for calling a global function with example usage: dummy_deprecation(start_version, end_version) without return types