code: def test_read(test_images):
      fname = test_images / "test_000_.SPE"
  
      im = iio.imread(fname, index=0)
      np.testing.assert_equal(im, frame0)
  
      ims = iio.imread(fname, index=...)
      np.testing.assert_equal(ims, [frame0, frame1])
  
      with pytest.raises(IndexError):
          iio.imread(fname, index=-1)
      with pytest.raises(IndexError):
          iio.imread(fname, index=2)
  
file_path: imageio/tests/test_spe.py
imports: from datetime import datetime
  import os
  import shutil
  import struct
  import numpy
  import pytest
  import imageio.v3
  from imageio.plugins import spe
label_desc: Use image node_id 2 for calling a global function with example usage: test_read(test_images) without return types