code: def test_fmt_series_cat_list() -> None:
      s = pl.Series(
          [
              ["a", "b"],
              ["b", "a"],
              ["b"],
          ],
      ).cast(pl.List(pl.Categorical))
  
      assert (
          str(s)
          == """shape: (3,)
  Series: '' [list[cat]]
  [
  	["a", "b"]
  	["b", "a"]
  	["b"]
  ]"""
      )
  
file_path: polars/py-polars/tests/unit/test_format.py
imports: from __future__ import annotations
  from decimal import Decimal
  from typing import Any, Iterator
  import pytest
  import polars
  from polars import ComputeError
label_desc: Use image node_id 8 for calling a global function with example usage: test_fmt_series_cat_list() without return types