Prisons are conventionally institutions which form part of the criminal justice system of a country , such that imprisonment or incarceration is a legal penalty that may be imposed by the state for the commission of a crime .

People are part of the criminal justice system of a country .
