import pickle


def load_object(pathname):
    """Load an object from disk using pickle.

    Parameters
    ----------
    pathname : str
        Full path of the file where the object is stored.

    Returns
    -------
    obj : any type
        Object loaded from disk.
    """
    with open(pathname, 'rb') as fid:
        obj = pickle.load(fid)
    return obj