'Builds a content node for a choice.'

@staticmethod
def build_choice_element(node_type, contents, tail_text, value):

    if (node_type in ('numtolerance_input', 'decoy_input')):
        node_type = 'textinput'
    choice = {'type': node_type, 'contents': contents, 'tail_text': tail_text, 'value': value}
    return choice
