from typing import List
from typing import Dict


def get_label_map_dict(label_list: List[str]) -> Dict[str, int]:
    """Returns a dict mapping labels and the corresponding id.

    Args:
        label_list: List of label names.

    Returns:
        A dict mapping labels to the corresponding id.
    """
    return {label: label_id for label_id, label in enumerate(label_list)}