import pickle


def unserialize_data(filename):
    """
    Returns the stored dictionary of vocabulary given the filename in 
    'filename.pickle' format (filename must be a string).
    """
    with open(f'pickles/{filename}', 'rb') as f:
        stored_vocab = pickle.load(f)
    
    return stored_vocab