code: def test_enum_categories_unique() -> None:
      with pytest.raises(
          ValueError, match="must be unique; found duplicate 'a'"
      ):
          pl.Enum(["a", "a", "b", "b", "b", "c"])
  
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 27 for calling a global function with example usage: test_enum_categories_unique() without return types