code: def test_series_init_uninstantiated_enum() -> None:
      with pytest.raises(
          TypeError,
          match="Enum types must be instantiated with a list of categories",
      ):
          pl.Series(["a", "b", "a"], dtype=pl.Enum)
  
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 18 for calling a global function with example usage: test_series_init_uninstantiated_enum() without return types