No person shall, for the purpose of causing a condition of intoxication, inebriation, excitement, stupefaction or the dulling of his brain or nervous system, intentionally smell or inhale the fumes from any substance containing aromatic hydrocarbons; provided, that nothing in this section shall be interpreted as applying to the inhalation of any anesthesia for medical or dental purposes.