def parse_set_choice(self, sbe_set, element):
    'parse and return an enum validvalue'
    attributes = self.parse_common_attributes(element, attributes=SET_CHOICE_ATTRIBUTES_LIST)
    value = element.text
    try:
        value = int(element.text)
    except ValueError as exc:
        raise ValueError(f"invalid value for set {sbe_set.name} choice {attributes.get('name')}") from exc
    choice = createChoice(value=value, **attributes)
    return choice
parse and return an enum validvalue
def parse_set_choice(self, sbe_set, element):
    
    attributes = self.parse_common_attributes(element, attributes=SET_CHOICE_ATTRIBUTES_LIST)
    value = element.text
    try:
        value = int(element.text)
    except ValueError as exc:
        raise ValueError(f"invalid value for set {sbe_set.name} choice {attributes.get('name')}") from exc
    choice = createChoice(value=value, **attributes)
    return choice