def METHOD_NAME(exercise: ExerciseInfo, workdir: Path):
    exercise_config = None
    if exercise.config_file.is_file():
        workdir_meta = workdir / '.meta'
        workdir_meta.mkdir(exist_ok=True)
        copy_file(exercise.config_file, workdir_meta / exercise.config_file.name)
        exercise_config = exercise.load_config()
    copy_solution_files(exercise, workdir, exercise_config)
    copy_test_files(exercise, workdir, exercise_config)