code: def test_datetime_range_invalid_time_zone() -> None:
      with pytest.raises(
          pl.ComputeError, match="unable to parse time zone: 'foo'"
      ):
          pl.datetime_range(
              datetime(2001, 1, 1),
              datetime(2001, 1, 3),
              time_zone="foo",
              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 6 for calling a global function with example usage: test_datetime_range_invalid_time_zone() without return types