27.03 Duties before grand jury.—Whenever required by the grand jury, the state attorney shall attend them for the purpose of examining witnesses in their presence, or of giving legal advice in any matter before them; and he or she shall prepare bills of indictment.