The facility is an agency of the state, a governmental unit, and a unit of local government as defined and specified by Chapters 101 and 102, Civil Practice and Remedies Code, and a local government as defined by Section 791.003, Government Code.