code: def test_split(tmpdir, args, expected):
      tmpdir.chdir()
  
      node = pe.Node(
          utility.Split(inlist=list(range(4)), splits=[1, 3], **args),
          name="split_squeeze",
      )
      res = node.run()
      assert res.outputs.out1 == expected[0]
      assert res.outputs.out2 == expected[1]
  
file_path: nipype/nipype/interfaces/utility/tests/test_base.py
imports: import os
  import pytest
  from nipype.interfaces import utility
  from nipype.interfaces.base import isdefined
  import nipype.pipeline.engine
label_desc: Use image node_id 2 for calling a global function with example usage: test_split(tmpdir, args, expected) without return types