def _extract_output(outputs, request):
    if (request in outputs):
        return outputs[request]
    return outputs[request.name]
def _extract_output(outputs, request):
    if (request in outputs):
        return outputs[request]
    return outputs[request.name]