def shape_labels(lbl: np.ndarray) -> np.ndarray:
    """
    Reshape a labels array

    :param lbl: a label array
    :return:
    """
    if lbl.shape[0] == 1:
        return lbl.squeeze(axis=0)
    return lbl

    Reshape a labels array

    :param lbl: a label array
    :return:
    
art/attacks/poisoning/adversarial_embedding_attack.py