def get_label2id(labels):
    """
    Get label2id mapping based on labels

    Args:
      labels: list of labels.

    Return:
      label2id map
    """
    return {v: str(k) for k, v in enumerate(labels)}