f = lambdify(x, expr)
import inspect
print(inspect.getsource(f))    # doctest: +SKIP
