def METHOD_NAME():
    with tempdir() as d:
        from ufo import MemoryOut, Read
        ref = random.astype(np.float32)
        out = np.zeros_like(ref).astype(np.float32)
        tifffile.imsave(d.path('foo.tif'), ref)
        read = Read(path=d.path('foo.tif'))
        write = MemoryOut(pointer=out.__array_interface__['data'][0], max_size=ref.nbytes)
        write(read()).run().join()
        assert(np.all(out == ref))