An officer of a correctional facility who uses any kind of torture on an inmate, or who commits the offence of cruelty to an inmate or who intentionally and unlawfully causes any harm to an inmate, is liable on conviction on indictment to imprisonment for 7 years.