Extradition of persons imprisoned or awaiting trial in another state

N.Y. Criminal Procedure Law § 570.12, under Securing Attendance of Defendants Who Are Outside the State But Within the United States--rendition to Other Jurisdictions of Defendants Within the State--uniform Criminal Extradition Act.

N.Y. Criminal Procedure Law § 570.12

§ 570.12 Extradition of persons imprisoned or awaiting trial in another\n state.\n When it is desired to have returned to this state a person charged in\nthis state with a crime and such person is imprisoned or is held under\ncriminal proceedings then pending against him in another state, the\ngovernor of this state may agree with the executive authority of such\nother state for the extradition of such person before the conclusion of\nhis term of sentence in such other state, upon condition that such\nperson be returned to such other state at the expense of this state as\nsoon as the prosecution in this state is terminated.\n