def METHOD_NAME(n_images, fmt='foo-{:05}.tif'):
    with tempdir() as d:
        data = np.ones((512, 512), dtype=np.float32)
        for i in range(n_images):
            tifffile.imsave(d.path(fmt.format(i)), data)
        yield d