code: def test_non_nested_cast_to_list(
      data: list[Any], expected_data: list[Any], dtype: PolarsDataType
  ) -> None:
      s = pl.Series(data, dtype=dtype)
      casted_s = s.cast(pl.List(dtype))
      expected = pl.Series(expected_data, dtype=pl.List(dtype))
      assert_series_equal(casted_s, expected)
  
imports: from __future__ import annotations
  import pickle
  from datetime import date, datetime, time
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 30 for calling a global function with example usage: test_non_nested_cast_to_list(data, expected_data, dtype) without return types