def output_handler(data, context):
    """
    Post-process TensorFlow Serving output before it is returned to the client
    """
    if data.status_code != 200:
        raise ValueError(data.content.decode("utf-8"))
    return data.content, context.accept_header