def METHOD_NAME(vars):
    human_utterance = state_utils.get_last_human_utterance(vars)
    sf_type, sf_confidence = get_speech_function_for_human_utterance(human_utterance)
    flag = sf_type and bool(re.search(agree_patterns_re, sf_type))
    # fallback to yes/no intents
    flag = flag or common_utils.is_yes(human_utterance)
    return flag