def METHOD_NAME(predict_request):
    if PROTOCOL == 'rest':
        requests.post(SERVER_URL, data=predict_request)
    elif PROTOCOL == 'grpc':
        predict_request[0].Predict(predict_request[1])