def extract_plugin_arguments(self, plugin):
module = self.import_plugin(plugin)<EOL>if hasattr(module, '<STR_LIT>'):<EOL><INDENT>manager = ArgumentPluginManager()<EOL>module.register_arguments(manager)<EOL>return manager._argparse_argkwargs<EOL><DEDENT>return ()<EOL>
Given a plugin name, extracts its registered_arguments as an
iterable of (args, kwargs) tuples.

:param plugin: plugin name
:type plugin: str
:returns: iterable if (args, kwargs) tuples.
:rtype: iterable