code: def test_arrow_list_array_creation():
      # create from pandas Series
      series = pd.Series([["a", "b"], ["c"], ["d", "e"]])
      array = ArrowListArray(series)
      assert isinstance(array.dtype, ArrowListDtype)
      assert isinstance(array.dtype.value_type, ArrowStringDtype)
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # create from list
      lst = [["a"], ["b", "c"], ["d", "e"]]
      array = ArrowListArray(lst)
      assert isinstance(array.dtype, ArrowListDtype)
      assert isinstance(array.dtype.value_type, ArrowStringDtype)
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # create from pyarrow Array
      a = pa.array([[1.0], [2.0, 3.0], [4.0]])
      array = ArrowListArray(a)
      assert isinstance(array.dtype, ArrowListDtype)
      assert array.dtype.value_type == np.float64
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # create from ArrowListArray
      array2 = ArrowListArray(array)
      assert isinstance(array2._arrow_array, pa.ChunkedArray)
  
      # test _from_sequence
      array = ArrowListArray._from_sequence([[1, 2], [3, 4], [5]])
      assert isinstance(array.dtype, ArrowListDtype)
      assert array.dtype.value_type == np.int64
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # test pandas_only
      with option_context({"dataframe.arrow_array.pandas_only": True}):
          array = ArrowListArray._from_sequence([[1, 2], [3, 4], [5]])
          assert isinstance(array.dtype, ArrowListDtype)
          assert isinstance(array._ndarray, np.ndarray)
  
      # test pandas_only and in kernel mode
      with enter_mode(kernel=True), option_context(
          {"dataframe.arrow_array.pandas_only": True}
      ), pytest.raises(ImportError):
          ArrowListArray._from_sequence([[1, 2], [3, 4], [5]])
  
file_path: mars/mars/dataframe/tests/test_arrays.py
imports: import numpy
  import pandas
  import pytest
  from ...config import option_context
  from ...core import enter_mode
  from ..None import ArrowStringDtype, ArrowStringArray, ArrowListDtype, ArrowListArray
  from ..arrays import _use_bool_any_all
  from ..utils import arrow_table_to_pandas_dataframe
label_desc: Use image node_id 3 for calling a global function with example usage: test_arrow_list_array_creation() without return types