human
I wrote the below code

    def _is_ajax_finished():
        '    Wait    for    jQuery    to    finish    all    AJAX    calls,    if    it    is    present.    '
        return browser.execute_script("return    typeof(jQuery)    ==    'undefined'    ||    jQuery.active    ==    0")
    EmptyPromise(_is_ajax_finished, 'Finished    waiting    for    ajax    requests.').fulfill()

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

def wait_for_ajax_or_reload(browser):