def METHOD_NAME(config_dir, allow_listing=True, debug=False):
    """
    Create a MultiMapProxy with the given config directory.
    :param config_dir: the directory with all project configurations.
    :param allow_listing: True if MapProxy should list all instances
        at the root URL
    """
    config_dir = os.path.abspath(config_dir)
    loader = DirectoryConfLoader(config_dir)
    return MultiMapProxy(loader, list_apps=allow_listing, debug=debug)