The attendance of the witness may be enforced by subpoena issued by the magistrate before whom the examination is to be taken, or from the court where the trial is to be had.
R.L.1910, § 6032.