ath.exists(self.temp_folder):
            os.mkdir(os.path.abspath(self.temp_folder))

        for i in np.arange(self.ncpu):
            fold = self.temp_folder + &#34;/cpu%s&#34; % i
            if not os.path.exists(fold):
                os.mkdir(os.path.abspath(fold))
            [shutil.copy2(filename, fold) for filename in files]

        try:
            Parallel(n_jobs=self.ncpu)(
                delayed(self.run_parallel)(i) for i in np.arange(self.ncpu)
            )
            shutil.rmtree(sel