code: def test_agg_function_of_filter_10565() -> None:
      df_int = pl.DataFrame(data={"a": []}, schema={"a": pl.Int16})
      assert df_int.filter(
          pl.col("a").n_unique().over("a") == 1
      ).to_dict(as_series=False) == {"a": []}
  
      df_str = pl.DataFrame(data={"a": []}, schema={"a": pl.String})
      assert df_str.filter(
          pl.col("a").n_unique().over("a") == 1
      ).to_dict(as_series=False) == {"a": []}
  
      assert df_str.lazy().filter(
          pl.col("a").n_unique().over("a") == 1
      ).collect(predicate_pushdown=False).to_dict(as_series=False) == {
          "a": []
      }
  
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 12 for calling a global function with example usage: test_agg_function_of_filter_10565() without return types