def install_fileobj(fileobj, plugin_path):
plugin_path = path(plugin_path)<EOL>tar = tarfile.open(mode="<STR_LIT>", fileobj=fileobj)<EOL>try:<EOL><INDENT>tar.extractall(plugin_path)<EOL>plugin_metadata = yaml.load(plugin_path.joinpath('<STR_LIT>').bytes())<EOL>fileobj.seek(<NUM_LIT:0>)<EOL><DEDENT>except:<EOL><INDENT>plugin_path.rmtree()<EOL>raise<EOL><DEDENT>return plugin_path, plugin_metadata<EOL>
Extract and install plugin from file-like object (e.g., opened file,
``StringIO``).

Parameters
----------
fileobj : file-like
    MicroDrop plugin file object to extract and install.
plugin_path : path
    Target plugin install directory path.

Returns
-------
(path, dict)
    Directory of installed plugin and metadata dictionary for plugin.