When the cause alleged for not pronouncing sentence is insanity, the court, if there is reasonable ground to believe that the defendant is insane, shall postpone the pronouncement of judgment and shall proceed to have the defendant's mental condition determined in the manner prescribed in this title, so far as applicable, for the determination of the mental condition of a defendant before or during trial. Whenever it is determined that the defendant is or has become sane, the defendant must be brought before the court for judgment.
29-26-14. Procedure when nonidentity or pardon is alleged as cause for not pronouncing sentence. When the reason alleged for not pronouncing sentence is that the person brought before the court to be sentenced is not the person against whom the verdict was rendered, or that the defendant has been pardoned of the offense charged, the court shall postpone the pronouncement of judgment, if necessary, for the purpose of hearing evidence relating to the identity or pardon of such person, and on proof of nonidentity or pardon, as the case may be, shall discharge such person from custody, unless the person is in custody on some other charge.