Minors, being material witnesses for the prosecution, may also be required, in the discretion of the magistrate, to procure sureties who will undertake for their appearance to testify, or the magistrate may issue subpoenas and have those minors instantly summoned to appear and testify.