def predictor(X, y, model):
    """
        test predict accuracy of trained learning model
        Args:
            X: testing data
            y: testing label
            model: trained learning model
        Returns:
            loss: model's predict loss
            accuracy: model's predict accuracy
    """
    loss, accuracy = model.evaluate(X, y)
    return loss, accuracy