I don't see what this function is useful for, especially since you're directly calling `_clip_norms` from `constrain_updates`. I'd just remove it.