code: def test_mimwrite_exception(tmp_path):
      img = np.zeros((4, 4), dtype=np.uint8)
  
      with pytest.raises(ValueError):
          iio.mimwrite(tmp_path / "test.png", img)
  
file_path: imageio/tests/test_v2.py
imports: import pytest
  import imageio.v2
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: test_mimwrite_exception(tmp_path) without return types