Inflate multiple plugins based on a list/dict definition.

        Args:
            plugins_definition (list/dict): the plugins definitions.
            inflate_method (method): the method to indlate each plugin.

        Returns:
            list: a list of plugin instances.

        Raises:
            ValueError: when the definition type is not list or dict.

def inflate_plugins(self, plugins_definition, inflate_method):
        """
        Inflate multiple plugins based on a list/dict definition.

        Args:
            plugins_definition (list/dict): the plugins definitions.
            inflate_method (method): the method to indlate each plugin.

        Returns:
            list: a list of plugin instances.

        Raises:
            ValueError: when the definition type is not list or dict.
        """
        if isinstance(plugins_definition, list):
            return self.inflate_plugin_list(plugins_definition, inflate_method)
        elif isinstance(plugins_definition, dict):
            return self.inflate_plugin_dict(plugins_definition, inflate_method)
        else:
            raise ValueError('%s type is not supported for a plugin list, '
                             'use list or dict' % type(plugins_definition))