code: def test_delete_parameter() -> None:
      @_api.delete_parameter("3.0", "foo")
      def func1(foo: Any = None) -> None:
          pass
  
      @_api.delete_parameter("3.0", "foo")
      def func2(**kwargs: Any) -> None:
          pass
  
      for func in [func1, func2]:  # type: ignore[list-item]
          func()  # No warning.
          with pytest.warns(mpl.MatplotlibDeprecationWarning):
              func(foo="bar")
  
      def pyplot_wrapper(
          foo: Any = _api.deprecation._deprecated_parameter,
      ) -> None:
          func1(foo)
  
      pyplot_wrapper()  # No warning.
      with pytest.warns(mpl.MatplotlibDeprecationWarning):
          func(foo="bar")
  
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 4 for calling a global function with example usage: test_delete_parameter() without return types