def METHOD_NAME(self, v1_to_v2_lib_map):
    """ undo the changes made by replace_all_library_source_blocks_ids"""
    courses = CourseOverview.get_all_courses()
    # Use Celery to distribute the workload
    tasks = group(undo_all_library_source_blocks_ids_for_course.s(course, v1_to_v2_lib_map) for course in courses)
    results = tasks.apply_async()
    for result in results.get():
        if isinstance(result, Exception):
            # Handle the task failure here
            log.error("Task failed with error: %s", str(result))
            continue
    log.info("Completed replacing all v2 library source ids with v1 library source ids. Undo Complete")