code: def test_rolling_map_sum_int_cast_to_float() -> None:
      s = pl.Series("A", [1, 2, 9, None, 13], dtype=pl.Int32)
  
      result = s.rolling_map(
          function=lambda s: s.sum(),
          window_size=3,
          weights=[1.0, 2.0, 3.0],
      )
  
      expected = pl.Series(
          "A", [None, None, 32.0, 20.0, 48.0], dtype=pl.Float64
      )
      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 7 for calling a global function with example usage: test_rolling_map_sum_int_cast_to_float() without return types