code: def test_categorical_nested_cast_unchecked() -> None:
      s = pl.Series("cat", [["cat"]]).cast(pl.List(pl.Categorical))
      assert pl.Series([s]).to_list() == [[["cat"]]]
  
imports: from __future__ import annotations
  import contextlib
  import io
  import operator
  from typing import TYPE_CHECKING, Any, Callable, Literal
  import pytest
  import polars
  from polars import StringCache
  from polars.exceptions import CategoricalRemappingWarning, StringCacheMismatchError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 37 for calling a global function with example usage: test_categorical_nested_cast_unchecked() without return types