I read the source code of tensorflow on github and find gen_math_ops is imported.
from tensorflow.python.ops import gen_math_ops
However, i
Just to add to the previous answers, if your goal is to inspect the source code, try inspect.get_source:
inspect.get_source