code: def test_fromblob():
      img = np.arange(100, dtype=np.uint8).reshape((10, 10))
      s = freeimage.imsavetoblob(img, "t.png")
      assert np.all(freeimage.imreadfromblob(s) == img)
  
      s = freeimage.imsavetoblob(img, "t.bmp")
      assert np.all(freeimage.imreadfromblob(s) == img)
  
file_path: mahotas/mahotas/tests/test_freeimage.py
imports: import numpy
  from os import path
label_desc: Use image node_id 5 for calling a global function with example usage: test_fromblob() without return types