the court may issue a certificate, known as a writ of habeas corpus ad testificandum, addressed to the attorney general of the United States certifying all such facts and requesting the attorney general to cause the attendance of the person as a witness in that court for a specified number of days.