def METHOD_NAME(self, retval, exc_info, duration):
    _locals = list(self.args or safety.get_args(self.frame))
    _locals.append(("@duration", duration / 1e6))  # milliseconds
    if exc_info[1] is None:
        _locals.append(("@return", retval))
    return dict(_locals)