The court before which any witness is duly summoned to appear may compel his or her attendance by writ of attachment, fine him or her not exceeding twenty dollars ($20.00), and order him or her to pay the costs of the attachment and to be committed to the adult correctional institutions until the fine and costs are paid.