Escape from custody while in another state pursuant to the Agreement on Detainers, shall constitute an offense against the laws of this Commonwealth to the same extent and degree as an escape from the institution in which the prisoner was confined immediately prior to having been sent to another state pursuant to the provisions of the Agreement on Detainers, and shall be punishable in the same manner as an escape from such institution.