human
I wrote the below code

    def _is_finished_loading():
        is_done = page.browser.execute_script("return    $({!r}).data('initialized')".format(xblock_css))
        return (is_done, is_done)
    return Promise(_is_finished_loading, 'Finished    initializing    the    xblock.').fulfill()

What's a good function header?

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

def wait_for_xblock_initialization(page, xblock_css):