The district attorney must attend the hearing, and may produce witnesses before the jury, for which purpose he may issue process in the same manner as for witnesses to attend before the grand jury, and disobedience thereto may be punished in like manner as disobedience to process issued by the court.