code: def test_group_by_dynamic_when_conversion_crosses_dates_7274() -> (
      None
  ):
      df = (
          pl.DataFrame(
              data={
                  "timestamp": [
                      "1970-01-01 00:00:00+01:00",
                      "1970-01-01 01:00:00+01:00",
                  ],
                  "value": [1, 1],
              }
          )
          .with_columns(
              pl.col("timestamp")
              .str.strptime(pl.Datetime, format="%Y-%m-%d %H:%M:%S%:z")
              .dt.convert_time_zone("Africa/Lagos")
              .set_sorted()
          )
          .with_columns(
              pl.col("timestamp")
              .dt.convert_time_zone("UTC")
              .alias("timestamp_utc")
              .set_sorted()
          )
      )
      result = df.group_by_dynamic(
          index_column="timestamp", every="1d", closed="left"
      ).agg(pl.col("value").count())
      expected = pl.DataFrame(
          {"timestamp": [datetime(1970, 1, 1)], "value": [2]}
      )
      expected = expected.with_columns(
          pl.col("timestamp").dt.replace_time_zone("Africa/Lagos"),
          pl.col("value").cast(pl.UInt32),
      )
      assert_frame_equal(result, expected)
      result = df.group_by_dynamic(
          index_column="timestamp_utc", every="1d", closed="left"
      ).agg(pl.col("value").count())
      expected = pl.DataFrame(
          {
              "timestamp_utc": [
                  datetime(1969, 12, 31),
                  datetime(1970, 1, 1),
              ],
              "value": [1, 1],
          }
      )
      expected = expected.with_columns(
          pl.col("timestamp_utc").dt.replace_time_zone("UTC"),
          pl.col("value").cast(pl.UInt32),
      )
      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 19 for calling a global function with example usage: test_group_by_dynamic_when_conversion_crosses_dates_7274() without return types