(6)The appropriate Government shall setup mental health establishment in the medical wing of at least one prison in each State and Union territory and prisoners with mental illness may ordinarily be referred to and cared for in the said mental health establishment.