code: def test_overlapping_groups_4628() -> None:
      df = pl.DataFrame(
          {
              "index": [1, 2, 3, 4, 5, 6],
              "val": [10, 20, 40, 70, 110, 160],
          }
      )
      assert (
          df.rolling(
              index_column=pl.col("index").set_sorted(), period="3i"
          ).agg(
              [
                  pl.col("val").diff(n=1).alias("val.diff"),
                  (pl.col("val") - pl.col("val").shift(1)).alias(
                      "val - val.shift"
                  ),
              ]
          )
      ).to_dict(as_series=False) == {
          "index": [1, 2, 3, 4, 5, 6],
          "val.diff": [
              [None],
              [None, 10],
              [None, 10, 20],
              [None, 20, 30],
              [None, 30, 40],
              [None, 40, 50],
          ],
          "val - val.shift": [
              [None],
              [None, 10],
              [None, 10, 20],
              [None, 20, 30],
              [None, 30, 40],
              [None, 40, 50],
          ],
      }
  
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  from numpy import nan
  import polars
  from polars.exceptions import ComputeError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_overlapping_groups_4628() without return types