def OnMismatch(function, matcher):
 return _OnMismatch(_function=function, _matcher=matcher)

def OnMismatch ( function , matcher ) : return _OnMismatch ( _function = function , _matcher = matcher )
decorate matcher such that function is called on mismatches .