code: def test_freeimage(tmpdir):
      img = np.arange(256).reshape((16, 16)).astype(np.uint8)
  
      fname = tmpdir.join("mahotas_test.png")
      freeimage.imsave(fname, img)
      img_ = freeimage.imread(fname)
      assert img.shape == img_.shape
      assert np.all(img == img_)
  
file_path: mahotas/mahotas/tests/test_freeimage.py
imports: import numpy
  from os import path
label_desc: Use image node_id 1 for calling a global function with example usage: test_freeimage(tmpdir) without return types