Unless the offense with which the prisoner is charged is shown to be an offense punishable by death under the laws of the state in which it was committed, a judge or magistrate in this state shall admit the prisoner to bail by bond or undertaking, with sufficient sureties, and in a sum the judge or magistrate considers proper, conditioned upon the prisoner's appearance before the judge or magistrate at a time specified in the bond or undertaking and for the prisoner's surrender, to be arrested on the warrant of the governor of this state.