code: def test_datetime_range_invalid_interval(interval: timedelta) -> None:
      with pytest.raises(
          pl.ComputeError, match="`interval` must be positive"
      ):
          pl.datetime_range(
              datetime(2000, 3, 20),
              datetime(2000, 3, 21),
              interval="-1h",
              eager=True,
          )
  
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.datatypes import DTYPE_TEMPORAL_UNITS
  from polars.exceptions import ComputeError, TimeZoneAwareConstructorWarning
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 16 for calling a global function with example usage: test_datetime_range_invalid_interval(interval) without return types