code: def test_clear_window_cache_after_filter_10499() -> None:
      df = pl.from_dict(
          {
              "a": [None, None, 3, None, 5, 0, 0, 0, 9, 10],
              "b": [1, 1, 2, 2, 3, 3, 4, 4, 5, 5],
          }
      )
  
      assert df.lazy().filter(
          (pl.col("a").null_count() < pl.count()).over("b")
      ).filter(
          ((pl.col("a") == 0).sum() < pl.count()).over("b")
      ).collect().to_dict(
          as_series=False
      ) == {
          "a": [3, None, 5, 0, 9, 10],
          "b": [2, 2, 3, 3, 5, 5],
      }
  
file_path: polars/py-polars/tests/unit/operations/test_filter.py
imports: from datetime import datetime
  import pytest
  import polars
  from polars import PolarsDataType
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_clear_window_cache_after_filter_10499() without return types