(a) The governing body of any city of the second class or incorporated town may create by ordinance a department of public safety.
(b) A city or town department of public safety shall perform the functions of, and have all the rights, responsibilities, and duties of, a police department or the city or town marshal's office and a municipal fire department. Further, it may perform any other departmental functions deemed by the governing body of the city or town to be necessary for the public safety of its citizens, including, but not limited to, emergency medical services, ambulance services, or building and health code enforcement.