I am using python and need to get a user function and list what modules and versions it imports, If I can also analyze what local scripts it imports, it will be better
I found this Alowing to do so for a full script, but I need something that is more like
def a():
import module
modules_and_versions = analyze(a)
Thanks!