code: def deprecate_renamed_function(
      new_name: str, *, version: str, moved: bool = False
  ) -> Callable[[Callable[P, T]], Callable[P, T]]:
      """Decorator to mark a function as deprecated due to being renamed (or moved)."""
      moved_or_renamed = "moved" if moved else "renamed"
      return deprecate_function(
          f"It has been {moved_or_renamed} to `{new_name}`.",
          version=version,
      )
  
file_path: polars/py-polars/polars/utils/deprecation.py
imports: from __future__ import annotations
  import inspect
  import warnings
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, TypeVar
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 3 for calling a global function with example usage: deprecate_renamed_function(new_name) and returns: deprecate_function