When an indictment or information is called for trial, or upon conviction the defendant is brought up for judgment, if a doubt arise as to the sanity of the defendant, the court must order a jury to be impaneled from the jurors summoned and returned for the term, or who may be summoned by direction of the court, to inquire into the fact.
R.L.1910, § 6050.