(2)a person who is charged with an offence, but who, by reason of unsoundness of mind, is incapable of making a defence, and who is in consequence, detained under the section 330 of the Code of Criminal Procedure, pending the orders of the State Government,