The defendant's verified statement shall be presented to the court or a judge thereof, and if, after notice and hearing, which may not be waived, it is found sufficient, the court or judge shall render judgment accordingly, whereupon it may be filed in the office of the clerk who shall docket it.
SDCL 21-26-5