code: def test_attribute_removal():
      for module_name, cls, attr in _filter(ATTRIBUTE_SCHEDULE):
          try:
              module = __import__(module_name)
          except ImportError:
              continue
          try:
              klass = getattr(module, cls)
          except AttributeError:
              continue
          assert not hasattr(
              klass, attr
          ), f"Time to remove {module_name}.{cls}.{attr}"
  
file_path: nibabel/nibabel/tests/test_removalschedule.py
imports: import unittest
  from unittest import mock
  import pytest
  from ..pkg_info import cmp_pkg_version
label_desc: Use image node_id 4 for calling a global function with example usage: test_attribute_removal() without return types