def create_labels(dcr_root):
    """
    Returns activity name event label mapping function
    :param dcr_root: The Etree root element of a dcr graph
    :return: Dictionary of all labels and names
    """
    mappings = []
    for mapping in dcr_root.iter('labelMapping'):
        mappings.append(mapping.get('labelId'))
    return mappings