code: def test_imopen(test_images, tmp_path):
      with iio.imopen(test_images / "test_000_.SPE", "r") as img:
          assert isinstance(img, spe.SpePlugin)
  
      with pytest.raises(OSError):
          iio.imopen(tmp_path / "test.spe", "w", plugin="SPE")
  
      with open(tmp_path / "stub.spe", "wb") as f:
          f.write(b"\x00\x01\x02\x03")
      with pytest.raises(OSError):
          iio.imopen(tmp_path / "stub.spe", "r", plugin="SPE")
  
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 1 for calling a global function with example usage: test_imopen(test_images, tmp_path) without return types