(2) The court shall grant any reasonable continuance with the consent of the defendant. Notwithstanding the defendant’s lack of consent, the court may grant a continuance on motion of the district attorney or on its own motion, for good cause shown. The fact of imprisonment is not good cause for the purposes of this subsection. [Formerly 134.520; 1993 c.542 §1; 2019 c.213 §16]