code: def test_deprecation_alternative() -> None:
      alternative = "`.f1`, `f2`, `f3(x) <.f3>` or `f4(x)<f4>`"
  
      @_api.deprecated("1", alternative=alternative)
      def f() -> None:
          pass
  
      if f.__doc__ is None:
          pytest.skip("Documentation is disabled")
      assert alternative in f.__doc__
  
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 6 for calling a global function with example usage: test_deprecation_alternative() without return types