code: def test_date_range_invalid_time() -> None:
      with pytest.raises(
          pl.ComputeError, match="end is an out-of-range time"
      ):
          pl.date_range(
              pl.date(2024, 1, 1), pl.date(2024, 2, 30), eager=True
          )
  
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 3 for calling a global function with example usage: test_date_range_invalid_time() without return types