If such person is detained under the provisions of subsection (2) of section 330, and in the case of a person detained in a jail, the Inspector-General of Prisons, or, in the case of a person detained in a lunatic asylum, the visitors of such asylum or any two of them shall certify, that, in his or their opinion, such person is capable of making his defence, he shall be taken before the Magistrate or court, as the case may be, at such time as the Magistrate or court appoints, and the Magistrate or court shall deal with such person under the provisions of section 332; and the certificate of such Inspector General or visitors as aforesaid shall be receivable as evidence.