def int_labels_to_list(Y, keys):
    new_Y = []
    for item in Y:
        sublist = ([0] * len(keys))
        sublist[(item - 1)] = 1
        sublist = torch.tensor(sublist)
        new_Y.append(sublist)
    return new_Y
def int_labels_to_list(Y, keys):
    new_Y = []
    for item in Y:
        sublist = ([0] * len(keys))
        sublist[(item - 1)] = 1
        sublist = torch.tensor(sublist)
        new_Y.append(sublist)
    return new_Y