import pickle


def load_dict(path):
    """Loads pickle dump.

    Args:
        path (:obj:`str`): Path to the pickle file.
    Returns:
        A :obj:`tuple` containing the filename and the pickled object.
    """

    with open(path, 'rb') as fh:
        params = pickle.load(fh)

    return (path.split('/')[-1], params)