Any person who brews beer or produces beer shall be fined not more than $1,000, or imprisoned not more than 1 year, or both, unless such beer is brewed or produced in a brewery qualified under subchapter G or such production is exempt from tax under section
5053
(e) (relating to beer for personal or family use).