code: def test_binary_simplification_5971() -> None:
      df = pl.DataFrame(pl.Series("a", [1, 2, 3, 4]))
      assert df.select((pl.col("a") > 2) | pl.lit(False))[
          "a"
      ].to_list() == [
          False,
          False,
          True,
          True,
      ]
  
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 9 for calling a global function with example usage: test_binary_simplification_5971() without return types