from typing import Dict
import pickle


def download_dict_hash_cards(path: str) -> Dict[int, int]:
    """Downloading a dictionary of form {card: hash_cards} fron file

    Args:
        path (str): file path

    Returns:
        dict: dictionary of form {card: hash_card}
    """

    filehandler = open(path, 'rb')
    card_dict = pickle.load(filehandler)
    filehandler.close()
    return card_dict