def get_same_predictions(y_pred, y_pred_adv):
    """
    Get the indexes of the predictions where the image and the adversarial image where
    classified as the same class.

    Parameters
    ----------
    y_pred: array
        Array with the predictions of the model in dataset.

    y_pred_adv: array
        Array with the predictions of the model in adv_dataset.

    Returns
    -------
    Array.
    """

    indexes = [i for i, (y, y_adv) in enumerate(zip(y_pred, y_pred_adv)) if y == y_adv]

    return indexes