code: def test_shift_and_fill_group_logicals() -> None:
      df = pl.DataFrame(
          [
              (date(2001, 1, 2), "A"),
              (date(2001, 1, 3), "A"),
              (date(2001, 1, 4), "A"),
              (date(2001, 1, 3), "B"),
              (date(2001, 1, 4), "B"),
          ],
          schema=["d", "s"],
      )
      result = df.select(
          pl.col("d")
          .shift(fill_value=pl.col("d").max(), n=-1)
          .over("s")
      )
  
      assert result.dtypes == [pl.Date]
  
file_path: polars/py-polars/tests/unit/operations/test_shift.py
imports: from __future__ import annotations
  from datetime import date
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_shift_and_fill_group_logicals() without return types