import torch


def load_snapshot(model_path):
    """
    Load snapshot

    :param model_path: path to snapshot
    :type model_path: str
    :return: built state
    :rtype: dict
    """
    state = torch.load(model_path)
    return state