def load_cached_object(filename, directory='Cache/'):
    if filename[-4:] != '.pkl':
        filename = filename+'.pkl'
    try:
        object = joblib.load(directory+filename)
        log.info('Successfully loaded object from: '+directory+filename)
    except __HOLE__:
        log.info('Cached object does not exist: '+directory+filename)
    return object
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/data_io.py/load_cached_object