section 520(3)


520(3) If the judge so orders or the prosecutor or the accused or his counsel so requests, the accused shall be present at the hearing of an application under this section and, where the accused is in custody, the judge may order, in writing, the person having the custody of the accused to bring him before the court.