def METHOD_NAME(course_dir):
    """
    Check that import->export leaves the course the same
    """
    print('====== Roundtrip import =======')
    (ok, course) = import_with_checks(course_dir)
    if not ok:
        raise Exception('Roundtrip import failed!')
    print('====== Roundtrip export =======')
    export_dir = course_dir + '.rt'
    export(course, export_dir)
    # dircmp doesn't do recursive diffs.
    # diff = dircmp(course_dir, export_dir, ignore=[], hide=[])
    print('======== Roundtrip diff: =========')
    sys.stdout.flush()  # needed to make diff appear in the right place
    os.system(f'diff -r {course_dir} {export_dir}')
    print('======== ideally there is no diff above this =======')