What are the pros and cons of importing a Python module and/or function inside of a function, with respect to efficiency of speed and of memory?
Does it re-import every time the function is run, or perhaps just once at the beginning whether or not the function is run?
It imports once when the function executes first time.
Pros:

imports related to the function they're used in
easy to move functions around the package

Cons:

couldn't see what modules this module might depend on
In Python, what happens when you import inside of a function?