import pickle


def load_pkl(file):
    """Loads data from pickle

    Parameters
    ----------
    file : str

    Returns
    -------
    data
    """
    f = open(file, 'rb')
    data = pickle.load(f)
    f.close()
    return data