code: def test_cast_list_to_array(
      data: Any, inner_type: pl.DataType
  ) -> None:
      s = pl.Series(data, dtype=pl.List(inner_type))
      s = s.cast(pl.Array(inner_type, 2))
      assert s.dtype == pl.Array(inner_type, width=2)
      assert s.to_list() == data
  
file_path: polars/py-polars/tests/unit/datatypes/test_array.py
imports: import datetime
  from typing import Any
  import pytest
  import polars
  from polars.exceptions import InvalidOperationError
  from polars.testing import assert_series_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_cast_list_to_array(data, inner_type) without return types