from typing import Dict
import pickle


def _from_checkpoint(
        fname: str='checkpoint.pkl') -> Dict:
    """ Load a checkpoint file """
    with open(fname, 'rb') as f:
        checkpoint = pickle.load(f)
    return checkpoint