The district attorney and the defendant are each entitled to such process as is necessary to enforce the attendance of witnesses as upon a trial of an indictment.
(Enacted by Stats. 1943, Ch. 134.)