code: def test_max_statistic_parquet_writer() -> None:
      # this hits the maximal page size
      # so the row group will be split into multiple pages
      # the page statistics need to be correctly reduced
      # for this query to make sense
      n = 150_000
  
      # int64 is important to hit the page size
      df = (
          pl.int_range(0, n, eager=True, dtype=pl.Int64)
          .alias("int")
          .to_frame()
      )
      f = "/tmp/tmp.parquet"
      df.write_parquet(
          f, statistics=True, use_pyarrow=False, row_group_size=n
      )
      result = (
          pl.scan_parquet(f).filter(pl.col("int") > n - 3).collect()
      )
      expected = pl.DataFrame({"int": [149998, 149999]})
      assert_frame_equal(result, expected)
  
file_path: polars/py-polars/tests/benchmark/test_release.py
imports: import time
  from pathlib import Path
  from typing import cast
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_max_statistic_parquet_writer() without return types