code: def test_arrow_string_array_creation():
      # create from pandas Series
      series = pd.Series(["a", "bc", "de"])
      array = ArrowStringArray(series)
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      if pd.__version__ >= "1.0.0":
          # test create from StringArray which occurs in pandas 1.0
          s = pd.arrays.StringArray(
              np.array(["a", "bc", "de"], dtype=object)
          )
          array = ArrowStringArray(s)
          assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # create from list
      lst = ["a", "bc", "de"]
      array = ArrowStringArray(lst)
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # create from pyarrow Array
      a = pa.array(["a", "bc", "de"])
      array = ArrowStringArray(a)
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # create from ArrowStringArray
      array2 = ArrowStringArray(array)
      assert isinstance(array2._arrow_array, pa.ChunkedArray)
  
      # test copy
      arrow_array = array2._arrow_array
      array3 = ArrowStringArray(arrow_array, copy=True)
      assert array3._arrow_array is not arrow_array
  
      # test from_scalars
      array = ArrowStringArray.from_scalars([1, 2])
      assert isinstance(array._arrow_array, pa.ChunkedArray)
      assert isinstance(array._arrow_array.chunks[0], pa.StringArray)
  
      # test _from_sequence
      array = ArrowStringArray._from_sequence(["a", "b", "cc"])
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
      # test _from_sequence_of_strings
      array = ArrowStringArray._from_sequence_of_strings(["a", "b"])
      assert isinstance(array._arrow_array, pa.ChunkedArray)
  
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 2 for calling a global function with example usage: test_arrow_string_array_creation() without return types