1. As a condition of probation, the court may order a defendant who is convicted of a violation of chapter 574 of NRS that is punishable as a felony, gross misdemeanor or misdemeanor to:
(a) Submit to a psychiatric evaluation; and
(b) Participate in any counseling, therapy, rehabilitative program or educational program recommended in the evaluation.
2. The court shall order a defendant, to the extent of the defendant’s financial ability, to pay the cost for an evaluation and any counseling, therapy, rehabilitative program or educational program ordered pursuant to this section.