No, I am a forensic (mechanical) engineer. About half of my work is on failed plumbing systems and components in terms of installation, materials or design so I have to keep up to date on all aspects of the plumbing trades including code and inspections.
Most expansion tanks are hung down from the attachment, but some are designed to mounted upright. Upright prevents debris settlement on the diaphragm which cause some failures.