code: def test_list_builder_different_categorical_rev_maps() -> None:
      with pl.StringCache():
          # built with different values, so different rev-map
          s1 = pl.Series(["a", "b"], dtype=pl.Categorical)
          s2 = pl.Series(["c", "d"], dtype=pl.Categorical)
  
      assert pl.DataFrame({"c": [s1, s2]}).to_dict(as_series=False) == {
          "c": [["a", "b"], ["c", "d"]]
      }
  
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 35 for calling a global function with example usage: test_list_builder_different_categorical_rev_maps() without return types