def output(self, resource):
@wraps(resource)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>resp = resource(*args, **kwargs)<EOL>if isinstance(resp, ResponseBase):  <EOL><INDENT>return resp<EOL><DEDENT>data, code, headers = unpack(resp)<EOL>return self.make_response(data, code, headers=headers)<EOL><DEDENT>return wrapper<EOL>
Wraps a resource (as a flask view function), for cases where the
        resource does not directly return a response object

        :param resource: The resource as a flask view function