human
What is a the Python program you requested given the following:
Complete the below
def create_default_plugins(request, placeholders, template, lang):

    ''''Create all default plugins for the given ``placeholders`` if they have
    a "default_plugins" configuration value in settings.
    return all plugins, children, grandchildren (etc.) created'
    '''
assistant
#Here is the Python program you requested.
    from cms.api import add_plugin
    def _create_default_plugins(placeholder, confs, parent=None):
        "\n                                Auxillary    function    that    builds    all    of    a    placeholder's    default    plugins\n                                at    the    current    level    and    drives    the    recursion    down    the    tree.\n                                Returns    the    plugins    at    the    current    level    along    with    all    descendants.\n                                "
        (plugins, descendants) = ([], [])
        addable_confs = (conf for conf in confs if has_plugin_permission(request.user, conf['plugin_type'], 'add'))
        for conf in addable_confs:
            plugin = add_plugin(placeholder, conf['plugin_type'], lang, target=parent, **conf['values'])
            if ('children' in conf):
                args = (placeholder, conf['children'], plugin)
                descendants += _create_default_plugins(*args)
            plugin.notify_on_autoadd(request, conf)
            plugins.append(plugin)
        if parent:
            parent.notify_on_autoadd_children(request, conf, plugins)
        return (plugins + descendants)
    unfiltered_confs = ((ph, get_placeholder_conf('default_plugins', ph.slot, template)) for ph in placeholders)
    mutable_confs = ((ph, default_plugin_confs) for (ph, default_plugin_confs) in filter(itemgetter(1), unfiltered_confs) if ph.has_change_permission(request.user))
    return sum(starmap(_create_default_plugins, mutable_confs), [])