code: def test_empty_series_nested_dtype(dtype: PolarsDataType) -> None:
      # various flavours of empty nested dtype
      s = pl.Series("nested", dtype=dtype)
      assert s.dtype.base_type() == dtype.base_type()
      assert s.to_list() == []
  
imports: from __future__ import annotations
  from dataclasses import dataclass
  from datetime import datetime, time
  from typing import TYPE_CHECKING
  import pandas
  import pyarrow
  import pytest
  import polars
  import polars.selectors
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 35 for calling a global function with example usage: test_empty_series_nested_dtype(dtype) without return types