code: def test_extractall_no_capture_groups_raises(any_string_dtype):
      # Does not make sense to use extractall with a regex that has no capture groups.
      # (it returns DataFrame with one column for each capture group)
      s = Series(
          ["a3", "b3", "d4c2"],
          name="series_name",
          dtype=any_string_dtype,
      )
      with pytest.raises(ValueError, match="no capture groups"):
          s.str.extractall(r"[a-z]")
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  from pandas.core.dtypes.dtypes import ArrowDtype
  from pandas import DataFrame, Index, MultiIndex, Series, _testing
label_desc: Use image node_id 24 for calling a global function with example usage: test_extractall_no_capture_groups_raises(any_string_dtype) without return types