from pathlib import Path
from typing import Any
import pickle


def load_model(path: Path) -> 'Any':
    """
    Load a model file from the given path

    path: a pathlib.Path object
    return: the loaded model
    """

    with path.open('rb') as fp:
        return pickle.load(fp)