human
I wrote the below code

    def select_option(query, value):
        '    Get    the    first    select    element    that    matches    the    query    and    select    the    desired    value.    '
        try:
            select = Select(query.first.results[0])
            select.select_by_visible_text(value)
            if focus_out:
                query.first.results[0].send_keys(Keys.TAB)
            return True
        except StaleElementReferenceException:
            return False
    msg = 'Selected    option    {}'.format(option_text)
    EmptyPromise((lambda : select_option(select_browser_query, option_text)), msg).fulfill()

What's a good function header?
assistant
#Here's a good function header.

def select_option_by_text(select_browser_query, option_text, focus_out=False):