def unpickle(pickled_string):
try:<EOL><INDENT>obj = loads(pickled_string)<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise UnpickleError('<STR_LIT>', pickled_string, e)<EOL><DEDENT>return obj<EOL>
Unpickles a string, but raises a unified UnpickleError in case anything
    fails.
    This is a helper method to not have to deal with the fact that `loads()`
    potentially raises many types of exceptions (e.g. AttributeError,
    IndexError, TypeError, KeyError, etc.)