A state agency or a political subdivision may enter into an agreement under this chapter only if the agreement is for the accomplishment of a function that the agency or political subdivision is authorized to perform under other law.