def label_map(value):
    """ Function that determines the diagnosis according to the Glucose level of an entry.
    The three possible diagnosis are: Hypoglycemia, hyperglycemia and normal

    :param value: Glucose level
    :return: Diagnosis (String)
    """
    hypoglycemia_threshold = 70
    hyperglycemia_threshold = 180
    severe_hyperglycemia_threshold = 240

    if value < hypoglycemia_threshold:
        return 'Hypoglycemia'
    elif value > hyperglycemia_threshold:
        if value > severe_hyperglycemia_threshold:
            return 'Severe_Hyperglycemia'
        else:
            return 'Hyperglycemia'
    else:
        return 'In_Range'