The legislative authority of a code city may purchase liability insurance in an amount it deems reasonable to protect the code city, its officers, and employees against liability for the wrongful acts of offenders or injury or damage incurred by offenders in the course of court-ordered community restitution, and may elect to treat offenders as employees and/or workers under Title
51 RCW.