def loglikeobs(self, loglikelihood_burn=None, **kwargs):
        if self.memory_no_likelihood:
            raise RuntimeError('Cannot compute loglikelihood if'
                               ' MEMORY_NO_LIKELIHOOD option is selected.')
        if loglikelihood_burn is None:
            loglikelihood_burn = self.loglikelihood_burn
        kwargs['results'] = 'loglikelihood'
        llf_obs = self.filter(**kwargs)

        # Set any burned observations to have zero likelihood
        llf_obs[:loglikelihood_burn] = 0

        return llf_obs
Assert the code in the context manager block raises an error.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/statespace/kalman_filter.py/KalmanFilter.loglikeobs--crossover with--dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_loaders.py/ImproperlyConfiguredTestMixin.assertImproperlyConfigured