from typing import Union


def uniprot_name_to_id(name_to_id_map: dict, name: str) -> Union[str, None]:
    """Uniprot name to ID mapping

    :param name_to_id_map: mapping dict[name] -> id
    :param name: name
    :return: id string, or None
    """
    if name in name_to_id_map:
        return name_to_id_map[name]
    else:
        return None