code: def test_deprecate_renamed_parameter(recwarn: Any) -> None:
      @deprecate_renamed_parameter("foo", "oof", version="1.0.0")
      @deprecate_renamed_parameter("bar", "rab", version="2.0.0")
      def hello(oof: str, rab: str, ham: str) -> None:
          ...
  
      hello(foo="x", bar="y", ham="z")  # type: ignore[call-arg]
  
      assert len(recwarn) == 2
      assert "oof" in str(recwarn[0].message)
      assert "rab" in str(recwarn[1].message)
  
file_path: polars/py-polars/tests/unit/utils/test_deprecation.py
imports: from __future__ import annotations
  import inspect
  from typing import Any
  import pytest
  from polars.utils.deprecation import deprecate_function, deprecate_nonkeyword_arguments, deprecate_renamed_function, deprecate_renamed_parameter, issue_deprecation_warning
label_desc: Use image node_id 4 for calling a global function with example usage: test_deprecate_renamed_parameter(recwarn) without return types