Any peace officer or extradition agent of another state bringing any person within this state or transporting such person through the state under a warrant of arrest or extradition warrant issued in another state or the officer of any penal institution of another state conveying or transporting a prisoner of such institution into or through this state shall have the same authority as to the custody and restraint of such person while in the State of South Dakota as duly constituted peace officers of this state have in making an arrest under the process issued by the courts of this state or under the laws of this state.
SDCL 23-24-36