code: def test_compare_enum_str_raise() -> None:
      s = pl.Series(
          [None, "a", "b", "c"], dtype=pl.Enum(["a", "b", "c"])
      )
      s2 = pl.Series([None, "d", "d", "d"])
      s_broadcast = pl.Series(["d"])
  
      for s_compare in [s2, s_broadcast]:
          for op in [
              operator.le,
              operator.gt,
              operator.ge,
              operator.lt,
          ]:
              with pytest.raises(
                  pl.ComputeError,
                  match="value 'd' is not present in Enum",
              ):
                  op(s, s_compare)
  
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 24 for calling a global function with example usage: test_compare_enum_str_raise() without return types