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

    def _factory(app):
        ext_mgr = PluginAwareExtensionManager.get_instance()
        return ExtensionMiddleware(app, ext_mgr=ext_mgr)
    return _factory

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

def plugin_aware_extension_middleware_factory(global_config, **local_config):