Every municipality shall have power to enter into agreements with the United States, with the State of South Dakota and with any authorized agency, subdivision or unit of government, federal or state, to carry out any authorized municipal function.
SDCL 9-12-4