1004. Criminal responsibility.

Where, on a criminal charge, it appears that, at the time of the act or omission giving rise to the offence alleged, the defendant was labouring under a defect of reason owing to a disease of the mind so as not to know the nature and quality of his act, or, if he knew this, so as not to know that what he was doing was wrong, he is not regarded in law as responsible for his act