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

    def fake_get_connection_type(client):
        'Returns    the    proper    connection    type.'
        DEFAULT_REGISTRY_PORT = 9191
        if ((client.port == DEFAULT_REGISTRY_PORT) and (client.host == '0.0.0.0')):
            rserver = kwargs.pop('registry', None)
            return FakeRegistryConnection(registry=rserver)
    def fake_image_iter(self):
        for i in self.response.app_iter:
            (yield i)
    stubs.Set(glance.common.client.BaseClient, 'get_connection_type', fake_get_connection_type)

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

def stub_out_registry_server(stubs, **kwargs):