def get_true_labels(train_data_indexes, attacker_data_indexes) :
    """Returns the true labels of the attacker data records
    
    Parameters
    ----------
    train_data_indexes : numpy.ndarray
        indexes of the real data used for training the STDG approach
    attacker_data_indexes : numpy.ndarray
        indexes of the data that the attacker obtained

    Returns
    -------
    list
        the true labels of the records (1 belong to training set, 0 does not belong to training set)
    """   

    #initialize a list to append the labels
    true_labels = []

    #iterate over all attacker data indexes to append the true label of each record to the list
    for idx in attacker_data_indexes :
        if idx in train_data_indexes :
            true_labels.append(1)
        else :
            true_labels.append(0)

    #return the list with the true labels of the records
    return true_labels