code: def test_dt_datetime_date_time_invalid() -> None:
      with pytest.raises(ComputeError, match="expected Datetime"):
          pl.Series([date(2021, 1, 2)]).dt.datetime()
      with pytest.raises(
          ComputeError, match="expected Datetime or Date"
      ):
          pl.Series([time(23)]).dt.date()
      with pytest.raises(ComputeError, match="expected Datetime"):
          pl.Series([time(23)]).dt.datetime()
      with pytest.raises(
          ComputeError, match="expected Datetime or Date"
      ):
          pl.Series([timedelta(1)]).dt.date()
      with pytest.raises(ComputeError, match="expected Datetime"):
          pl.Series([timedelta(1)]).dt.datetime()
      with pytest.raises(
          ComputeError, match="expected Datetime, Date, or Time"
      ):
          pl.Series([timedelta(1)]).dt.time()
  
imports: from __future__ import annotations
  import sys
  from datetime import date, datetime, time, timedelta
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.datatypes import DTYPE_TEMPORAL_UNITS
  from polars.dependencies import _ZONEINFO_AVAILABLE
  from polars.exceptions import ComputeError, InvalidOperationError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_dt_datetime_date_time_invalid() without return types