def breed_mismatch(train):
    breed_labels = pd.read_csv('../input/petfinder-adoption-prediction/breed_labels.csv')
    dog_breed_labels_set = list(breed_labels[(breed_labels['Type'] == 1)]['BreedID'])
    dog_breed_labels_set.remove(307)
    train['breeds_mismatch'] = list(((train['Type'] == 2) & (train['fix_Breed1'].isin(dog_breed_labels_set) | train['fix_Breed2'].isin(dog_breed_labels_set))))
    train['breeds_mismatch'] = train['breeds_mismatch'].astype(int)
    return train
def breed_mismatch(train):
    breed_labels = pd.read_csv('../input/petfinder-adoption-prediction/breed_labels.csv')
    dog_breed_labels_set = list(breed_labels[(breed_labels['Type'] == 1)]['BreedID'])
    dog_breed_labels_set.remove(307)
    train['breeds_mismatch'] = list(((train['Type'] == 2) & (train['fix_Breed1'].isin(dog_breed_labels_set) | train['fix_Breed2'].isin(dog_breed_labels_set))))
    train['breeds_mismatch'] = train['breeds_mismatch'].astype(int)
    return train