code: def test_groupby_rolling_deprecated() -> None:
      df = pl.DataFrame(
          {
              "date": pl.datetime_range(
                  datetime(2020, 1, 1), datetime(2020, 1, 5), eager=True
              ),
              "value": [1, 2, 3, 4, 5],
          }
      )
  
      with pytest.deprecated_call():
          result = df.groupby_rolling("date", period="2d").agg(
              pl.sum("value")
          )
      with pytest.deprecated_call():
          result_lazy = (
              df.lazy()
              .groupby_rolling("date", period="2d")
              .agg(pl.sum("value"))
              .collect()
          )
  
      expected = df.rolling("date", period="2d").agg(pl.sum("value"))
      assert_frame_equal(result, expected, check_row_order=False)
      assert_frame_equal(result_lazy, expected, check_row_order=False)
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from datetime import datetime, timedelta
  from typing import Any
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 30 for calling a global function with example usage: test_groupby_rolling_deprecated() without return types