code: def test_rolling_by_1mo_saturating_12216() -> None:
      df = pl.DataFrame(
          {
              "date": [
                  date(2020, 6, 29),
                  date(2020, 6, 30),
                  date(2020, 7, 30),
                  date(2020, 7, 31),
                  date(2020, 8, 1),
              ],
              "val": [1, 2, 3, 4, 5],
          }
      ).set_sorted("date")
      with pytest.deprecated_call(
          match="The '_saturating' suffix is deprecated"
      ):
          result = df.rolling(
              index_column="date", period="1mo_saturating"
          ).agg(vals=pl.col("val"))
      expected = pl.DataFrame(
          {
              "date": [
                  date(2020, 6, 29),
                  date(2020, 6, 30),
                  date(2020, 7, 30),
                  date(2020, 7, 31),
                  date(2020, 8, 1),
              ],
              "vals": [[1], [1, 2], [3], [3, 4], [3, 4, 5]],
          }
      )
      assert_frame_equal(result, expected)
  
      # check with `closed='both'` against DuckDB output
      result = df.rolling(
          index_column="date", period="1mo", closed="both"
      ).agg(vals=pl.col("val"))
      expected = pl.DataFrame(
          {
              "date": [
                  date(2020, 6, 29),
                  date(2020, 6, 30),
                  date(2020, 7, 30),
                  date(2020, 7, 31),
                  date(2020, 8, 1),
              ],
              "vals": [[1], [1, 2], [2, 3], [2, 3, 4], [3, 4, 5]],
          }
      )
      assert_frame_equal(result, expected)
  
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 25 for calling a global function with example usage: test_rolling_by_1mo_saturating_12216() without return types