code: def test_list_accessor_not_iterable():
      ser = Series(
          [[1, 2, 3], [4, None], None],
          dtype=ArrowDtype(pa.list_(pa.int64())),
      )
      with pytest.raises(
          TypeError, match="'ListAccessor' object is not iterable"
      ):
          iter(ser.list)
  
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 8 for calling a global function with example usage: test_list_accessor_not_iterable() without return types