def unpackb(packed, **kwargs):
unpacker = Unpacker(None, **kwargs)<EOL>unpacker.feed(packed)<EOL>try:<EOL><INDENT>ret = unpacker._unpack()<EOL><DEDENT>except OutOfData:<EOL><INDENT>raise UnpackValueError("<STR_LIT>")<EOL><DEDENT>if unpacker._got_extradata():<EOL><INDENT>raise ExtraData(ret, unpacker._get_extradata())<EOL><DEDENT>return ret<EOL>
Unpack an object from `packed`.

Raises `ExtraData` when `packed` contains extra bytes.
See :class:`Unpacker` for options.