code: def test_inner_type_categorical_on_rechunk() -> None:
      df = pl.DataFrame({"cats": ["foo", "bar"]}).select(
          pl.col(pl.String).cast(pl.Categorical).implode()
      )
  
      assert pl.concat([df, df], rechunk=True).dtypes == [
          pl.List(pl.Categorical)
      ]
  
imports: from __future__ import annotations
  import pickle
  from datetime import date, datetime, time
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_inner_type_categorical_on_rechunk() without return types