def print_attrs(attr, celebA_dataset):
    """
    human-readable format for CelebA attributes vector
    """
    legible = ''
    for i, a in enumerate(list(attr)):
        if a == 1:
            legible += celebA_dataset.attr_names[i] + ", "
    return legible