code: def test_rolling_apply_deprecated() -> None:
      with pytest.deprecated_call():
          pl.col("a").rolling_apply(lambda x: x + 1, window_size=2)
      with pytest.deprecated_call():
          pl.Series([1, 2, 3]).rolling_apply(
              lambda x: x + 1, window_size=2
          )
  
file_path: polars/py-polars/tests/unit/operations/rolling/test_map.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import polars
  from polars.testing import assert_series_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_rolling_apply_deprecated() without return types