§ 64D. A witness before a court-martial or any other person whose duty it is to attend on or before the court shall be entitled to the same immunities and privileges as a witness before the High Court in England."