I have a Flask backend in which I import the magic module on module level, but I use it only in one function:
import ma