code: def test_extract_expand_True_single_capture_group(
      index_or_series, any_string_dtype
  ):
      # single group renames series/index properly
      s_or_idx = index_or_series(["A1", "A2"], dtype=any_string_dtype)
      result = s_or_idx.str.extract(r"(?P<uno>A)\d", expand=True)
      expected = DataFrame({"uno": ["A", "A"]}, dtype=any_string_dtype)
      tm.assert_frame_equal(result, expected)
  
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 13 for calling a global function with example usage: test_extract_expand_True_single_capture_group(index_or_series, any_string_dtype) without return types