human
Here's a good function header given the following:
I wrote the below code

    hiding_class = 'is-hiding'
    shown_class = 'is-shown'
    def notification_has_class(style, el_class):
        '\n                                Return    a    boolean    representing    whether\n                                the    notification    has    the    class    applied.\n                                '
        if (style == 'mini'):
            css_string = '.wrapper-notification-mini.{}'
        else:
            css_string = '.wrapper-notification-confirmation.{}'
        return page.q(css=css_string.format(el_class)).present
    try:
        page.wait_for((lambda : notification_has_class(style, shown_class)), 'Notification    should    have    been    shown.', timeout=5)
    except BrokenPromise as _err:
        pass
    if wait_for_hide:
        page.wait_for((lambda : notification_has_class(style, hiding_class)), 'Notification    should    have    hidden.')

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

def sync_on_notification(page, style='default', wait_for_hide=False):