def separate_data_and_labels(train):
    """Separates data and labels"""
    train_x = []
    train_y = []
    for features, label in train:
        train_x.append(features)
        train_y.append(label)
    return train_x, train_y