def dataset_predict(model, data_set, role):
    """
    Predict for data_set.

    :param model: tf.keras.models.Model. Pre_model.
    :param data_set: GHData.
    :param role: int. Data set id.
    :return: tuple (labels, predictions). Labels and predictions of the same shape.
    :raise: ValueError.
    """
    (data, labels, _) = data_set.get_dataset(role)
    if data is None or labels is None:
        raise ValueError('no data')
    pre = model.predict(data)
    return labels, pre