(a) A person who violates Section 170A.002 commits an offense.
(b) An offense under this section is a felony of the second degree, except that the offense is a felony of the first degree if an unborn child dies as a result of the offense.