human
I wrote the below code

    def innerfn(fn):
        global whitelisted, guest_methods, xss_safe_methods
        whitelisted.append(fn)
        if allow_guest:
            guest_methods.append(fn)
            if xss_safe:
                xss_safe_methods.append(fn)
        return fn
    return innerfn

What's a good function header?

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

def whitelist(allow_guest=False, xss_safe=False):