Section 338(2) in The Code of Criminal Procedure, 1973
(2)Such Commission shall make a formal inquiry into the state of mind of such person, take such evidence as is necessary, and shall report to the State Government, which may order his release or detention as it thinks fit.