code: def test_date_range_invalid_time_unit() -> None:
      with pytest.raises(
          pl.PolarsPanicError, match="'x' not supported"
      ):
          pl.date_range(
              start=date(2021, 12, 16),
              end=date(2021, 12, 18),
              interval="1X",
              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 2 for calling a global function with example usage: test_date_range_invalid_time_unit() without return types