def METHOD_NAME(dat_gz_file: str) -> dict:
    """
    Convert UniProtKB id maps to dict of maps.
    Given a Uniprot dat.gz file, like this:
    ftp://ftp.uniprot.org/pub/databases/uniprot/
    current_release/knowledgebase/idmapping/by_organism/
    HUMAN_9606_idmapping.dat.gz
    makes dict with name to id mapping
    :param dat_gz_file:
    :return: dict with mapping
    """ ""
    name_to_id_map = dict()
    logging.info("Making uniprot name to id map")
    with gzip.open(dat_gz_file, mode="rb") as file:
        for line in tqdm(file):
            items = line.decode().strip().split("\t")
            name_to_id_map[items[2]] = items[0]
    return name_to_id_map