code: def test_categorical_get_categories() -> None:
      assert pl.Series(
          "cats",
          ["foo", "bar", "foo", "foo", "ham"],
          dtype=pl.Categorical,
      ).cat.get_categories().to_list() == ["foo", "bar", "ham"]
  
file_path: polars/py-polars/tests/unit/namespaces/test_categorical.py
imports: import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_categorical_get_categories() without return types