code: def test_group_by_dynamic(
      input_df: pl.DataFrame, expected_grouped_df: pl.DataFrame
  ) -> None:
      result = (
          input_df.sort("dt")
          .group_by_dynamic("dt", every="1q")
          .agg(pl.col("dt").count().alias("num_points"))
          .sort("dt")
      )
      assert_frame_equal(result, expected_grouped_df)
  
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 1 for calling a global function with example usage: test_group_by_dynamic(input_df, expected_grouped_df) without return types