code: def test_different_read_modes(examples):
      dname1, dname2, fname1, fname2 = examples
  
      for fname, dname, n in [(fname1, dname1, 1), (fname2, dname2, 2)]:
          # Test imread()
          im = iio.imread(fname)
          assert isinstance(im, np.ndarray)
          assert im.shape == (512, 512)
  
          # Test mimread()
          ims = iio.mimread(fname)
          assert isinstance(ims, list)
          assert ims[0].shape == im.shape
          assert len(ims) > 1
          #
          ims2 = iio.mimread(dname, format="DICOM")
          assert len(ims) == len(ims2)
  
          # Test volread()
          vol = iio.volread(dname, format="DICOM")
          assert vol.ndim == 3
          assert vol.shape[0] > 10
          assert vol.shape[1:] == (512, 512)
          #
          vol2 = iio.volread(fname)  # fname works as well
          assert (vol == vol2).all()
  
          # Test mvolread()
          vols = iio.mvolread(dname, format="DICOM")
          assert isinstance(vols, list)
          assert len(vols) == n
          assert vols[0].shape == vol.shape
          assert sum([v.shape[0] for v in vols]) == len(ims)
  
file_path: imageio/tests/test_dicom.py
imports: from zipfile import ZipFile
  import numpy
  import pytest
  import imageio.v2
  import imageio.v3
  from imageio import core
  import imageio.plugins.dicom
  from conftest import deprecated_test
label_desc: Use image node_id 6 for calling a global function with example usage: test_different_read_modes(examples) without return types