code: def test_error_imsave():
      with pytest.raises(ImportError):
          error_imsave(
              "/tmp/test_mahotas.png",
              np.arange(16, dtype=np.uint8).reshape((4, 4)),
          )
  
file_path: mahotas/mahotas/tests/test_io.py
imports: import numpy
  from mahotas.io import error_imread, error_imsave
  from os import path
  import mahotas
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_error_imsave() without return types