code: def test_slices_to_series():
      dicom_files = (pjoin(IO_DATA_PATH, f"{i}.dcm") for i in range(2))
      wrappers = [didr.wrapper_from_file(f) for f in dicom_files]
      series = didr.slices_to_series(wrappers)
      assert len(series) == 1
      assert len(series[0]) == 2
  
file_path: nibabel/nibabel/nicom/tests/test_dicomreaders.py
imports: from os.path import join
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from nibabel.optpkg import optional_package
  from ..None import dicomreaders
  from .test_dicomwrappers import DATA, EXPECTED_AFFINE, EXPECTED_PARAMS, IO_DATA_PATH
label_desc: Use image node_id 4 for calling a global function with example usage: test_slices_to_series() without return types