code: def test_decimal_parquet(tmp_path: Path) -> None:
      path = tmp_path / "foo.parquet"
      df = pl.DataFrame(
          {
              "foo": [1, 2, 3],
              "bar": ["6", "7", "8"],
          }
      )
  
      df = df.with_columns(pl.col("bar").cast(pl.Decimal))
  
      df.write_parquet(path, statistics=True)
      out = (
          pl.scan_parquet(path)
          .filter(foo=2)
          .collect()
          .to_dict(as_series=False)
      )
      assert out == {"foo": [2], "bar": [Decimal("7")]}
  
imports: from __future__ import annotations
  import io
  from datetime import datetime, time, timezone
  from decimal import Decimal
  from typing import TYPE_CHECKING
  import numpy
  import pandas
  import pyarrow
  import pyarrow.dataset
  import pyarrow.parquet
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 32 for calling a global function with example usage: test_decimal_parquet(tmp_path) without return types