human
Complete the below
def cloudwatched(ns):

    ''''@cloudwatched(...) decorator for annotating methods to be monitored via CloudWatch'
    '''
 What is a the Python program you requested?
assistant
#Here is the Python program you requested.
    def wrapping(func):
        def wrapped(*args, **kwargs):
            time_before = now_utc()
            result = None
            try:
                result = func(*args, **kwargs)
                publish_result(ns, time_before, result, kwargs)
            except Exception as e:
                publish_error(ns, time_before, e, kwargs)
                raise e
            finally:
                time_after = now_utc()
            return result
        return wrapped
    return wrapping