human
I wrote the below code

    (interface, avatar, logout) = xxx_todo_changeme
    if (not IJellyable.providedBy(avatar)):
        avatar = pb.AsReferenceable(avatar, 'perspective')
    puid = avatar.processUniqueID()
    logout = [logout]
    def maybeLogout():
        if (not logout):
            return
        fn = logout[0]
        del logout[0]
        fn()
    self.broker._localCleanup[puid] = maybeLogout
    self.broker.notifyOnDisconnect(maybeLogout)
    return avatar

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

def _fixed_cbLogin(self, xxx_todo_changeme):