Convert the value returned from EnumValue to a (name, value) tuple using the value classes.

def parse_value(named_reg_value):
    """
    Convert the value returned from EnumValue to a (name, value) tuple using the value classes.
    """
    name, value, value_type = named_reg_value
    value_class = REG_VALUE_TYPE_MAP[value_type]
    return name, value_class(value)