docstring for _prepare_merge_epochs :)