code: def test_rolling_map_rolling_sum() -> None:
      s = pl.Series("A", list(range(5)), dtype=pl.Float64)
  
      result = s.rolling_map(
          function=lambda s: s.sum(),
          window_size=3,
          weights=[1.0, 2.1, 3.2],
          min_periods=2,
          center=True,
      )
  
      expected = s.rolling_sum(
          window_size=3,
          weights=[1.0, 2.1, 3.2],
          min_periods=2,
          center=True,
      )
      assert_series_equal(result, 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 8 for calling a global function with example usage: test_rolling_map_rolling_sum() without return types