code: def test_append_to_an_enum_with_new_category() -> None:
      with pytest.raises(
          pl.ComputeError,
          match=(
              "enum is not compatible with other categorical / enum"
          ),
      ):
          pl.Series(
              [None, "a", "b", "c"], dtype=pl.Enum(["a", "b", "c"])
          ).append(
              pl.Series(
                  ["d", "a", "b", "c"],
                  dtype=pl.Enum(["a", "b", "c", "d"]),
              )
          )
  
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 16 for calling a global function with example usage: test_append_to_an_enum_with_new_category() without return types