def output(self, resource):
        @wraps(resource)
        def wrapper(*args, **kwargs):
            resp = resource(*args, **kwargs)
            if isinstance(resp, ResponseBase):  # There may be a better way to test
                return resp
            data, code, headers = unpack(resp)
            return self.make_response(data, code, headers=headers)
        return wrapper
Wraps a resource (as a flask view function), for cases where the
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/__init__.py/Api.output