code: def test_init_global_categorical_zero_copy_fails() -> None:
      with pl.StringCache():
          s = pl.Series("a", ["x"], dtype=pl.Categorical)
  
      with pytest.raises(
          CopyNotAllowedError,
          match="column 'a' must be converted to a local categorical",
      ):
          PolarsColumn(s, allow_copy=False)
  
imports: from __future__ import annotations
  from datetime import datetime
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.interchange.column import PolarsColumn
  from polars.interchange.protocol import ColumnNullType, CopyNotAllowedError, DtypeKind
  from polars.testing import assert_series_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_init_global_categorical_zero_copy_fails() without return types