code: def test_group_by_dynamic_2d_9333() -> None:
      df = pl.DataFrame(
          {"ts": [datetime(2000, 1, 1, 3)], "values": [10.0]}
      )
      df = df.with_columns(pl.col("ts").set_sorted())
      result = df.group_by_dynamic("ts", every="2d").agg(
          pl.col("values")
      )
      expected = pl.DataFrame(
          {"ts": [datetime(1999, 12, 31, 0)], "values": [[10.0]]}
      )
      assert_frame_equal(result, expected)
  
imports: from __future__ import annotations
  import sys
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 25 for calling a global function with example usage: test_group_by_dynamic_2d_9333() without return types