'Persist the given output tuple in the directory.'

def _persist_output(self, output, dir):

    try:
        filename = os.path.join(dir, 'output.pkl')
        mkdirp(dir)
        write_func = functools.partial(numpy_pickle.dump, compress=self.compress)
        concurrency_safe_write(output, filename, write_func)
        if (self._verbose > 10):
            print ('Persisting    in    %s' % dir)
    except OSError:
        '    Race    condition    in    the    creation    of    the    directory    '
