def source(object):
    print('In file: %s' % inspect.getsourcefile(object))
    print(inspect.getsource(object))
Prints the source code of a given object.
dataset/ETHPy150Open sympy/sympy/sympy/utilities/source.py/source