(b) Upon written agreement between the county commission on behalf of the sheriff and the directors of the local community mental health center and emergency medical services, an alternative transportation program may be arranged. The agreement shall clearly define the responsibilities of each of the parties, the requirements for program participation and the persons bearing ultimate responsibility for the individual's safety and well-being.
(c) Use of certified municipal law-enforcement officers. -- Sheriffs and municipal governments are hereby authorized to enter into written agreements whereby certified municipal law-enforcement officers may perform the duties of the sheriff as described in this article. The agreement shall determine jurisdiction, responsibility of costs and all other necessary requirements, including training related to the performance of these duties, and shall be approved by the county commission and circuit court of the county in which the agreement is made. For purposes of this subsection, "certified municipal law-enforcement officer" means any duly authorized member of a municipal law-enforcement agency who is empowered to maintain public peace and order, make arrests and enforce the laws of this state or any political subdivision thereof, other than parking ordinances, and who is currently certified as a law-enforcement officer pursuant to article twenty-nine, chapter thirty of this code.
(d) Nothing in this section is intended to alter security responsibilities for the patient by the sheriff unless mutually agreed upon as provided in subsection (c) of this section.