def _change_folder(self, new_folder):
        """
        Temporary change save folder, useful for loading from other folders
        """
        if new_folder:
            old_folder = self.folder
            new_folder = U.f_expand(new_folder)
            assert U.f_exists(new_folder)
            self.folder = new_folder
            yield
            self.folder = old_folder
        else:
            yield  # noop context

        Temporary change save folder, useful for loading from other folders
        
surreal/utils/checkpoint.py