code: def test_sql_regex_operators_error() -> None:
      df = pl.LazyFrame({"sval": ["ABC", "abc", "000", "A0C", "a0c"]})
      with pl.SQLContext(df=df, eager_execution=True) as ctx:
          with pytest.raises(
              ComputeError,
              match="Invalid pattern for '~' operator: 12345",
          ):
              ctx.execute("SELECT * FROM df WHERE sval ~ 12345")
          with pytest.raises(
              ComputeError,
              match=r"""Invalid pattern for '!~\*' operator: col\("abcde"\)""",
          ):
              ctx.execute("SELECT * FROM df WHERE sval !~* abcde")
  
imports: from __future__ import annotations
  import datetime
  import math
  from pathlib import Path
  import pytest
  import polars
  import polars.selectors
  from polars.exceptions import ComputeError, InvalidOperationError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 21 for calling a global function with example usage: test_sql_regex_operators_error() without return types