code: def test_series_from_buffer_unsupported() -> None:
      s = pl.Series([date(2020, 1, 1), date(2020, 2, 5)])
      buffer_info = s._get_buffer_info()
  
      with pytest.raises(
          TypeError,
          match="`from_buffer` requires a physical type as input for `dtype`, got date",
      ):
          pl.Series._from_buffer(pl.Date, buffer_info, owner=s)
  
file_path: polars/py-polars/tests/unit/series/buffers/test_from_buffer.py
imports: from __future__ import annotations
  from datetime import date
  import pytest
  from hypothesis import given
  import polars
  from polars.testing import assert_series_equal
  from polars.testing.parametric import series
label_desc: Use image node_id 4 for calling a global function with example usage: test_series_from_buffer_unsupported() without return types