"""Dataset and correction-loop helpers."""