Involved in the biosynthesis of pyridine alkaloid natural products, leading mainly to the production of anabasine, anatabine, nicotine and nornicotine, effective deterrents against herbivores with antiparasitic and pesticide properties (neurotoxins); nornicotine serves as the precursor in the synthesis of the carcinogen compound N'-nitrosonornicotine (NNN) (By similarity). Catalyzes a late oxidation step subsequent to the pyridine ring condensation reaction in the biosynthesis of alkaloids (By similarity). Alkaloid biosynthesis; nicotine biosynthesis. Mostly expressed in roots at low levels. By jasmonic acid (MeJA). Belongs to the oxygen-dependent FAD-linked oxidoreductase family.