human
I wrote the below code

    from google.appengine.tools import dev_appserver
    class ApiserverDispatcher(dev_appserver.URLDispatcher, ):
        'Dispatcher    that    handles    requests    to    the    built-in    apiserver    handlers.'
        _API_EXPLORER_URL = 'https://developers.google.com/apis-explorer/?base='
        class RequestState(object, ):
            'Enum    tracking    request    state.'
            INIT = 0
            GET_API_CONFIGS = 1
            SPI_CALL = 2
            END = 3
        def __init__(self, config_manager=None, *args, **kwargs):
            self._is_rpc = None
            self.request = None
            self._request_stage = self.RequestState.INIT
            self._is_batch = False
            if (config_manager is None):
                config_manager = ApiConfigManager()
            self.config_manager = config_manager
            self._dispatchers = []
            self._AddDispatcher('/_ah/api/explorer/?$', self.HandleApiExplorerRequest)
            self._AddDispatcher('/_ah/api/static/.*$', self.HandleApiStaticRequest)
            dev_appserver.URLDispatcher.__init__(self, *args, **kwargs)
        def _AddDispatcher(self, path_regex, dispatch_function):
            'Add    a    request    path    and    dispatch    handler.\n\n                        Args:\n                                path_regex:    Regex    path    to    match    against    incoming    requests.\n                                dispatch_function:    Function    to    call    for    these    requests.        The    function\n                                        should    take    (request,    outfile,    base_env_dict)    as    arguments    and\n                                        return    True.\n                        '
            self._dispatchers.append((re.compile(path_regex), dispatch_function))
        def _EndRequest(self):
            'End    the    request    and    clean    up.\n\n                        Sets    the    request    state    to    END    and    cleans    up    any    variables   ...

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

def CreateApiserverDispatcher(config_manager=None):