When a Magistrate, holding an inquiry or a trial, has reason to believe that the accused is of unsound mind, and consequently incapable of making his defence the Magistrate shall inquire into the fact of such unsoundness and shall cause such person to be examined by the Civil Surgeon of the district or such other medical officer as the Provincia...