code: def test_split_maxsplit(data, pat, any_string_dtype, n):
      # re.split 0, str.split -1
      s = Series(data, dtype=any_string_dtype)
  
      result = s.str.split(pat=pat, n=n)
      xp = s.str.split(pat=pat)
      tm.assert_series_equal(result, xp)
  
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 13 for calling a global function with example usage: test_split_maxsplit(data, pat, any_string_dtype, n) without return types