code: def test_str_accessor_split_noexpand(method):
      def call(obj, *args, **kwargs):
          return getattr(obj.str, method)(*args, **kwargs)
  
      s = pd.Series(
          ["a b c d", "aa bb cc dd", "aaa bbb ccc dddd"], name="foo"
      )
      ds = dd.from_pandas(s, npartitions=2)
  
      for n in [1, 2, 3]:
          assert_eq(
              call(s, n=n, expand=False), call(ds, n=n, expand=False)
          )
  
      assert call(ds, n=1, expand=False).name == "foo"
  
imports: from __future__ import annotations
  import contextlib
  import numpy
  import pytest
  import dask.dataframe
  from dask.dataframe._compat import PANDAS_GE_140, PANDAS_GE_210
  from dask.dataframe._pyarrow import to_pyarrow_string
  from dask.dataframe.utils import assert_eq, pyarrow_strings_enabled
label_desc: Use image node_id 14 for calling a global function with example usage: test_str_accessor_split_noexpand(method) and returns: getattr