code: def test_classproperty_deprecation() -> None:
      class A:
          @_api.deprecated("0.0.0")
          @_api.classproperty
          def f(cls: Self) -> None:
              pass
  
      with pytest.warns(mpl.MatplotlibDeprecationWarning):
          A.f
      with pytest.warns(mpl.MatplotlibDeprecationWarning):
          a = A()
          a.f
  
file_path: matplotlib/lib/matplotlib/tests/test_api.py
imports: from __future__ import annotations
  import re
  import typing
  from typing import Any, Callable, TypeVar
  import numpy
  import pytest
  import matplotlib
  from matplotlib import _api
label_desc: Use image node_id 2 for calling a global function with example usage: test_classproperty_deprecation() without return types