If a person complained of is brought before a magistrate upon the charge that that person threatened to commit an offense against another, the magistrate, if the charge is controverted, shall take testimony in relation thereto. The evidence on demand of the defendant must be reduced to writing and subscribed by the witnesses.
N.D.C.C. § 29-02-09