How to override normal def function

Possible using monkey patch:

Please check the example: