Add an op that wrap a python function and uses it as its perform.