When the sentence enforcement judge issues a warrant to bring a person pursuant to the first paragraph of Article 712-17, the provisions of the second paragraph of article 125 and those of article 127 are applicable, the powers conferred by these articles on the investigating judge and the liberty and custody judge being exercised by the sentence enforcement judge and the public prosecutor respectively.