If the petition for the writ is filed in any federal court, all the reasonably necessary costs, fees and expenses incurred or paid by the respondent shall be paid by the penitentiary of New Mexico. The budget of the penitentiary shall include an item for the anticipated expenses of habeas corpus proceedings. If budgeted funds shall not be sufficient to pay the costs and expenses that will arise, an emergency allowance from the state court fund shall be allowed upon application of the warden of the penitentiary to the state board of finance.
NMS § 44-1-38