Whoever, being a witness, or being about to be called as a witness, receives or offers to receive any bribe, upon any understanding that his testimony shall be influenced thereby, or that he will absent himself from the trial or proceeding upon which his testimony is required, shall be fined not more than $1,000 or imprisoned not more than 5 years, or both.