You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is A person with unsound mind can be released with pending investigation or trial under:- and explain in detail?
Release of person of unsound mind pending investigation or trial (Sec. 330 CrPC): On the basis of medical opinion, whenever a person if found incapable of entering defense by reason of unsoundness of mind or mental retardation, the Magistrate may decide to order release of such person on bail or kept in such a place where regular psychiatric treatment can be provided. Sec. 84 IPC : Insane - not liable to be punished with unsoundness of mind at the time of doing.