def get_plugins_from_mapping(self, mapping, pluginpoint, plugin_type):
        plugin_objects = getattr(mapping, 'get_' + pluginpoint.settings_field_name)()
        plugins = map(lambda plugin_obj: plugin_obj.get_plugin(), plugin_objects)
        if plugin_type:
            plugins = filter(
                lambda plugin: hasattr(plugin, 'plugin_type') and plugin.plugin_type == plugin_type, plugins
            )
        return plugins
Test to sets alternative for <name> to <path>, if <path> is defined
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/dms_plugins/operator.py/PluginsOperator.get_plugins_from_mapping--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/states/alternatives_test.py/AlternativesTestCase.test_set