code: def test_date_range() -> None:
      # if low/high are both date, range is also be date _iif_ the granularity is >= 1d
      result = pl.date_range(
          date(2022, 1, 1), date(2022, 3, 1), "1mo", eager=True
      )
      assert result.to_list() == [
          date(2022, 1, 1),
          date(2022, 2, 1),
          date(2022, 3, 1),
      ]
  
imports: from __future__ import annotations
  from datetime import date, datetime
  from typing import TYPE_CHECKING
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_date_range() without return types