Defining a replace function will entirely replace the associate function. This should only be done if your new function can handle everything the mraa function would normally.
Any functionality perfomed here is done just before the normal function returns. All post functions will have passed into them the return value that would normally be returned.