A peace officer, as defined in section 609.487, subdivision 2, clause (2), who enters this state to perform an assigned duty of transporting persons in legal custody for law enforcement purposes has the same authority to transport persons in legal custody as any member of any duly organized state, county, or municipal law enforcement unit of this state if a reciprocal right to transport persons in legal custody is extended to Minnesota peace officers by the peace officer’s state or local jurisdiction.