'Returns the option with the given choice value, otherwise None.'

def _find_option_with_choice(self, inputfield, choice):

    for option in self._find_options(inputfield):
        if (option['choice'] == choice):
            return option
