code: def test_parquet_stats(tmp_path: Path) -> None:
      tmp_path.mkdir(exist_ok=True)
  
      file_path = tmp_path / "binary_stats.parquet"
  
      df1 = pd.DataFrame({"a": [None, 1, None, 2, 3, 3, 4, 4, 5, 5]})
      df1.to_parquet(file_path, engine="pyarrow")
      df = (
          pl.scan_parquet(file_path)
          .filter(pl.col("a").is_not_null() & (pl.col("a") > 4))
          .collect()
      )
      assert df["a"].to_list() == [5.0, 5.0]
  
      assert (
          pl.scan_parquet(file_path)
          .filter(pl.col("a") > 4)
          .select(pl.col("a").sum())
      ).collect()[0, "a"] == 10.0
  
      assert (
          pl.scan_parquet(file_path)
          .filter(pl.col("a") < 4)
          .select(pl.col("a").sum())
      ).collect()[0, "a"] == 9.0
  
      assert (
          pl.scan_parquet(file_path)
          .filter(pl.col("a") < 4)
          .select(pl.col("a").sum())
      ).collect()[0, "a"] == 9.0
  
      assert (
          pl.scan_parquet(file_path)
          .filter(pl.col("a") > 4)
          .select(pl.col("a").sum())
      ).collect()[0, "a"] == 10.0
      assert pl.scan_parquet(file_path).filter(
          (pl.col("a") * 10) > 5.0
      ).collect().shape == (8, 1)
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from pathlib import Path
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_parquet_stats(tmp_path) without return types