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

    @deferred_performer
    def perform_run(dispatcher, intent):
        context.bind(message_type='flocker.provision.ssh:run', command=intent.log_command_filter(intent.command)).write()
        endpoint = SSHCommandClientEndpointWithTTY.existingConnection(connection, intent.command)
        d = Deferred()
        connectProtocol(endpoint, CommandProtocol(deferred=d, context=context))
        return d
    return TypeDispatcher({Run: perform_run, Sudo: perform_sudo, Put: perform_put, Comment: perform_comment})

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

def get_ssh_dispatcher(connection, context):