code: def test_apply_deprecated() -> None:
      df = pl.DataFrame(
          {
              "a": [1, 1, 2, 2, 3],
              "b": [1, 2, 3, 4, 5],
          }
      ).set_sorted("a")
  
      with pytest.deprecated_call():
          df.group_by("a").apply(lambda x: x)
      with pytest.deprecated_call():
          df.rolling("a", period="2i").apply(lambda x: x, schema=None)
      with pytest.deprecated_call():
          df.group_by_dynamic("a", every="2i").apply(
              lambda x: x, schema=None
          )
      with pytest.deprecated_call():
          pl.apply(["a", "b"], lambda x: x)
  
file_path: polars/py-polars/tests/unit/operations/map/test_map_groups.py
imports: from __future__ import annotations
  from typing import Any, Sequence
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_apply_deprecated() without return types