Any person who detains or assumes the custody of an involuntary patient under the Mental Health Act 2016 or a forensic disability client under the Forensic Disability Act 2011 contrary to the provisions of the laws relating to such persons is guilty of a misdemeanour, and is liable to imprisonment for 2 years.