This section applies if—
The Secretary of State may give an undertaking to a person acting on behalf of the territory with regard to either or both of these things—
The terms which may be included by the Secretary of State in an undertaking given under subsection (2) in relation to a person accused in the United Kingdom of the commission of an offence include terms—
The terms which may be included by the Secretary of State in an undertaking given under subsection (2) in relation to a person who has been convicted of an offence by or before a court in the United Kingdom include terms that the person be returned to the territory to serve the remainder of the sentence after the person would otherwise be released from detention pursuant to the sentence imposed in the United Kingdom (whether or not on licence).
If a person is to be returned to a territory by virtue of an undertaking given under subsection (2), the undertaking is sufficient authority for a constable—