def get_class_index(d):
    """Get class name and index from the whole dictionary
    E.g.,
    '{'index': 'data/Deploy/KLAC/KLAC0570/KLAC0570_12.jpg', 'prediction': ..., 'label': ...}'
    ==>  (str) 'KLAC0570'
    """
    return d['index'].split('/')[-2]