Mental disease or defect

N.Y. Penal Law § 40.15, under Other Defenses Involving Lack of Culpability.

N.Y. Penal Law § 40.15

§ 40.15 Mental disease or defect.\n In any prosecution for an offense, it is an affirmative defense that\nwhen the defendant engaged in the proscribed conduct, he lacked criminal\nresponsibility by reason of mental disease or defect. Such lack of\ncriminal responsibility means that at the time of such conduct, as a\nresult of mental disease or defect, he lacked substantial capacity to\nknow or appreciate either:\n 1. The nature and consequences of such conduct; or\n 2. That such conduct was wrong.\n