I think further clarification is called for here to prevent confusion.
The molecular formula C17H21O4N is indeed applicable to what is called Scopolamine in the USA. The rest of the world tend to call it Hyoscine.
However, the molecular formula C17H21O4N is what is known as a structural isomer and the formula can therefore also apply to a totally different substance with totally different physical and chemical properties.
In this case C17H21O4N is also the formula of Cocaine.