code: def test_different_enum_comparison_order() -> None:
      df_enum = pl.DataFrame(
          [
              pl.Series(
                  "a_cat",
                  ["c", "a", "b", "c", "b"],
                  dtype=pl.Enum(["a", "b", "c"]),
              ),
              pl.Series(
                  "b_cat",
                  ["F", "G", "E", "G", "G"],
                  dtype=pl.Enum(["F", "G", "E"]),
              ),
          ]
      )
      for op in [operator.gt, operator.ge, operator.lt, operator.le]:
          with pytest.raises(
              pl.ComputeError,
              match="can only compare categoricals of the same type",
          ):
              df_enum.filter(op(pl.col("a_cat"), pl.col("b_cat")))
  
imports: import operator
  from datetime import date
  from textwrap import dedent
  from typing import Any, Callable
  import pytest
  import polars
  from polars import StringCache
  from polars.testing import assert_series_equal
label_desc: Use image node_id 25 for calling a global function with example usage: test_different_enum_comparison_order() without return types