code: def test_decimal_in_filter() -> None:
      df = pl.DataFrame(
          {
              "foo": [1, 2, 3],
              "bar": ["6", "7", "8"],
          }
      )
      df = df.with_columns(pl.col("bar").cast(pl.Decimal))
      assert df.filter(pl.col("foo") > 1).to_dict(as_series=False) == {
          "foo": [2, 3],
          "bar": [D("7"), D("8")],
      }
  
imports: from __future__ import annotations
  import io
  import itertools
  from dataclasses import dataclass
  from decimal import Decimal
  from typing import Any, NamedTuple
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 14 for calling a global function with example usage: test_decimal_in_filter() without return types