def test_observed():
    with tp.Model() as model:
        mu = tp.Parameter()
        sigma = tp.Parameter()
        X = tp.Normal(mu, sigma)
    model.observed(X)
    assert(model._observed in X)
dataset/ETHPy150Open tensorprob/tensorprob/tests/test_model.py/test_observed/swapped operands of `in`