(1) This section applies if -
(a) the court proceeds under section 156 in pursuance of section 169 or 170, or
(b) the prosecutor applies under section 171.
(2) In such a case -
(a) the prosecutor must give the court a statement of information within the period the court orders;
(b) section 166 applies accordingly (with appropriate modifications where the prosecutor applies under section 171);
(c) section 167 applies accordingly;
(d) section 168 applies as it applies in the circumstances mentioned in section 168(1).