from typing import Union
from pathlib import Path
from typing import Any
import pickle


def load_pickle(filepath: Union[str, Path]) -> Any:
    """Load pickled data from disk

    Args:
        filepath: Path to pickle file

    Returns:
        Contents of pickle.
    """
    with open(filepath, "rb") as f:
        return pickle.load(f)