code: def test_window_5868() -> None:
      df = pl.DataFrame({"value": [None, 2], "id": [None, 1]})
  
      result_df = df.with_columns(pl.col("value").max().over("id"))
      expected_df = pl.DataFrame({"value": [None, 2], "id": [None, 1]})
      assert_frame_equal(result_df, expected_df)
  
      df = pl.DataFrame({"a": [None, 1, 2, 3, 3, 3, 4, 4]})
  
      result = df.select(pl.col("a").sum().over("a")).get_column("a")
      expected = pl.Series("a", [0, 1, 2, 9, 9, 9, 8, 8])
      assert_series_equal(result, expected)
  
      result = (
          df.with_columns(pl.col("a").set_sorted())
          .select(pl.col("a").sum().over("a"))
          .get_column("a")
      )
      assert_series_equal(result, expected)
  
      result = (
          df.drop_nulls()
          .select(pl.col("a").sum().over("a"))
          .get_column("a")
      )
      expected = pl.Series("a", [1, 2, 9, 9, 9, 8, 8])
      assert_series_equal(result, expected)
  
      result = (
          df.drop_nulls()
          .with_columns(pl.col("a").set_sorted())
          .select(pl.col("a").sum().over("a"))
          .get_column("a")
      )
      assert_series_equal(result, expected)
  
imports: from __future__ import annotations
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 14 for calling a global function with example usage: test_window_5868() without return types