def async_exception_raiser(exc):
        assert isinstance(exc, Exception), "Must derive from Exception"

        def method(*args, **kw):
            try:
                raise exc
            except:
                return defer.fail(Failure())
        return method
Read EegTrial object from pickle file.
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/test/test_user_handler_errors.py/async_exception_raiser--crossover with--dataset/ETHPy150Open turambar/pyDatasets/pydatasets/uci/eeg.py/EegTrial.from_pickle