Federal or Tribal detention facility. (2) Exception Nothing in this subsection shall prohibit a participating tribe from housing a non-Indian inmate in a tribal facility that was prosecuted under the special criminal jurisdiction of the Indian tribe. (e) Post-sentencing notice requirements Immediately on the sentencing of a defendant to any form of custody following a trial or guilty plea, the tribal court of the participating tribe shall— (1) notify the defendant of his or her right to file a habeas corpus petition in the Federal district court for the district in which the defendant will be held in custody