I am trying to identify the import module name which is dependent by a variable in the script.
ex:
import module1
import module2
x = module1.func()
y = x.func()
given y, my output should be y -> x -> module1 and the respective line num.
Can someone help me figure this out? Just now started exploring this with AST.