code: def test_sql_regexp_like(
      foods_ipc_path: Path,
      not_: str,
      pattern: str,
      flags: str | None,
      expected: str | None,
  ) -> None:
      lf = pl.scan_ipc(foods_ipc_path)
      flags = "" if flags is None else f",'{flags}'"
      with pl.SQLContext(foods=lf, eager_execution=True) as ctx:
          out = ctx.execute(
              f"""
              SELECT DISTINCT category FROM foods
              WHERE {not_} REGEXP_LIKE(category,'{pattern}'{flags})
              """
          )
          assert out.rows() == ([(expected,)] if expected else [])
  
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 22 for calling a global function with example usage: test_sql_regexp_like(foods_ipc_path, not_, pattern, flags, expected) without return types