code: def test_list_accessor_non_list_dtype():
      ser = Series(
          [1, 2, 4],
          dtype=ArrowDtype(pa.int64()),
      )
      with pytest.raises(
          AttributeError,
          match=re.escape(
              "Can only use the '.list' accessor with 'list[pyarrow]' dtype, "
              "not int64[pyarrow]."
          ),
      ):
          ser.list[1:None:0]
  
file_path: pandas/pandas/tests/series/accessors/test_list_accessor.py
imports: import re
  import pytest
  from pandas import ArrowDtype, Series
  import pandas._testing
  from pandas.compat import pa_version_under11p0
label_desc: Use image node_id 6 for calling a global function with example usage: test_list_accessor_non_list_dtype() without return types