A magistrate may require as a condition of bond that a defendant charged with an offense under Section 43.02 or 43.021, Penal Code, receive counseling or education, or both, relating to acquired immune deficiency syndrome or human immunodeficiency virus.
Tex. Code Crim. Proc. § 17.45