(a) By accepting a license or permit, the holder consents to the commission, an authorized representative of the commission, or a peace officer entering the licensed premises at any time to conduct an investigation or inspect the premises for the purpose of performing any duty imposed by this code.
(b) A person commits an offense if the person refuses to allow the commission, an authorized representative of the commission, or a peace officer to enter a licensed or permitted premises as required by Subsection (a). An offense under this section is a Class A misdemeanor.