In any criminal proceeding, upon motion of any party as provided in § 23A-24-11, the court may enter any order necessary to allow a child witness or a witness having a developmental disability to be accompanied by a certified therapeutic dog during the witness' testimony in the manner provided in §