If the person who has been ordered to pay such costs or compensation fails so to pay, a warrant of distress may be issued in accordance with section 182, and, in default of distress, the court may issue such process as may be necessary for his or her appearance and may sentence him or her to imprisonment in accordance with the provisions of section 183 or 186, and thereupon all the provisions of s