The legislative authority of a city or town may purchase liability insurance in an amount it deems reasonable to protect the city or town, 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.