code: def test_split_with_name_series(any_string_dtype):
      # GH 12617
  
      # should preserve name
      s = Series(["a,b", "c,d"], name="xxx", dtype=any_string_dtype)
      res = s.str.split(",")
      exp = Series([["a", "b"], ["c", "d"]], name="xxx")
      tm.assert_series_equal(res, exp)
  
      res = s.str.split(",", expand=True)
      exp = DataFrame([["a", "b"], ["c", "d"]], dtype=any_string_dtype)
      tm.assert_frame_equal(res, exp)
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, _testing
  from pandas.tests.strings import _convert_na_value, object_pyarrow_numpy
label_desc: Use image node_id 29 for calling a global function with example usage: test_split_with_name_series(any_string_dtype) without return types