code: def test_dynamic_group_by_timezone_awareness(
      every: str | timedelta, offset: str | timedelta
  ) -> None:
      df = pl.DataFrame(
          (
              pl.datetime_range(
                  datetime(2020, 1, 1),
                  datetime(2020, 1, 10),
                  timedelta(days=1),
                  time_unit="ns",
                  eager=True,
              )
              .alias("datetime")
              .dt.replace_time_zone("UTC"),
              pl.arange(1, 11, eager=True).alias("value"),
          )
      )
  
      assert (
          df.group_by_dynamic(
              "datetime",
              every=every,
              offset=offset,
              closed="right",
              include_boundaries=True,
              label="datapoint",
          ).agg(pl.col("value").last())
      ).dtypes == [pl.Datetime("ns", "UTC")] * 3 + [pl.Int64]
  
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 2 for calling a global function with example usage: test_dynamic_group_by_timezone_awareness(every, offset) without return types