Inflate a list of strings/dictionaries to a list of plugin instances.

        Args:
            plugin_dict (dict): a dict of dict.
            inflate_plugin (method): the method to inflate the plugin.

        Returns:
            list: a plugin instances list.

def inflate_plugin_dict(plugin_dict, inflate_plugin):
        """
        Inflate a list of strings/dictionaries to a list of plugin instances.

        Args:
            plugin_dict (dict): a dict of dict.
            inflate_plugin (method): the method to inflate the plugin.

        Returns:
            list: a plugin instances list.
        """
        plugins = []
        for identifier, definition in plugin_dict.items():
            try:
                plugins.append(inflate_plugin(identifier, definition))
            except PluginNotFoundError as e:
                logger.error('Could not import plugin identified by %s. '
                             'Exception: %s.', identifier, e)
        return plugins