code: def test_as_list_logical_type() -> None:
      df = pl.select(timestamp=pl.date(2000, 1, 1), value=0)
      assert df.group_by(True).agg(
          pl.col("timestamp").gather(pl.col("value").arg_max())
      ).to_dict(as_series=False) == {
          "literal": [True],
          "timestamp": [[date(2000, 1, 1)]],
      }
  
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 40 for calling a global function with example usage: test_as_list_logical_type() without return types