No such code exists. Training points come only from levelling up, one at a time.
It's not much of a loss, either — a stockpile of training points does nothing for you if you're below the level required to learn the spell. They're effectively useless until you're high enough to train in the first place.