(2)The prosecutor and the accused person may appear before such Chief Judicial Magistrate or the Judicial Magistrate of the first class by counsel or, except in the case of an accused person in custody, in person, and may examine, cross-examine and re-examine, as the case may be, the said witness.