The secretary of corrections may enter into agreements with other agencies of the state and the political subdivisions for the confinement and the providing of other services for those inmates whose employment or vocational training or other educational programs so require, and such agencies of the state and the political subdivisions may enter into such agreements.
SDCL 24-8-4