human
Here's a good function header given the following:
I wrote the below code

    @functools.wraps(function)
    def decorated_function(self, context, *args, **kwargs):
        wrapped_func = utils.get_wrapped_function(function)
        keyed_args = safe_utils.getcallargs(wrapped_func, context, *args, **kwargs)
        instance_uuid = keyed_args['instance']['uuid']
        event_name = 'compute_{0}'.format(function.func_name)
        with compute_utils.EventReporter(context, self.conductor_api, event_name, instance_uuid):
            function(self, context, *args, **kwargs)
    return decorated_function

What's a good function header?
assistant
#Here's a good function header.

def wrap_instance_event(function):