def METHOD_NAME(self):
    raw_tasks = [
        f'{kernel} {module} {driver_type}\n'
        for kernel, value in self.tasks.items()
        for module, driver_type in value
    ]
    with open(os.path.join(self.output_dir, 'all'), 'a+') as f:
        f.writelines(raw_tasks)