Section 37. Whoever steals a controlled substance from a registered manufacturer, wholesale druggist, pharmacy or other person authorized to dispense or possess any controlled substance shall be punished by imprisonment in the state prison for not more than ten years or in a jail or house of correction for not more than two and one-half years or by a fine of not more than five hundred dollars.