code: def test_valid_enum_category_types(categories: Any) -> None:
      with pytest.raises(TypeError, match="Enum categories"):
          pl.Enum(categories)
  
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 26 for calling a global function with example usage: test_valid_enum_category_types(categories) without return types