code: def test_rolling_map_clear_reuse_series_state_10681() -> None:
      df = pl.DataFrame(
          {
              "a": [1, 1, 1, 1, 2, 2, 2, 2],
              "b": [0, 1, 11.0, 7, 4, 2, 3, 8],
          }
      )
  
      result = df.select(
          pl.col("b")
          .rolling_map(lambda s: s.min(), window_size=3, min_periods=2)
          .over("a")
          .alias("min")
      )
  
      expected = pl.Series(
          "min", [None, 0.0, 0.0, 1.0, None, 2.0, 2.0, 2.0]
      )
      assert_series_equal(result.to_series(), expected)
  
file_path: polars/py-polars/tests/unit/operations/rolling/test_map.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import polars
  from polars.testing import assert_series_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_rolling_map_clear_reuse_series_state_10681() without return types