mvpa2.support.nibabel.surf_gifti.safe_write

mvpa2.support.nibabel.surf_gifti.safe_write(fnout, s, mode='wb')

Helper to write to a file and check result file size to match