def METHOD_NAME(self):
    with pytest.raises(ValueError, match="Length of"):
        with pm.Model() as m:
            pm.Normal("n", observed=[[1]], total_size=[2, Ellipsis, 2, 2])
            m.logp()
    with pytest.raises(ValueError, match="Length of"):
        with pm.Model() as m:
            pm.Normal("n", observed=[[1]], total_size=[2, 2, 2])
            m.logp()
    with pytest.raises(TypeError, match="Invalid type for total_size"):
        with pm.Model() as m:
            pm.Normal("n", observed=[[1]], total_size="foo")
            m.logp()
    with pytest.raises(NotImplementedError, match="Cannot convert"):
        with pm.Model() as m:
            pm.Normal("n", observed=[[1]], total_size=["foo"])
            m.logp()
    with pytest.raises(ValueError, match="Only one Ellipsis"):
        with pm.Model() as m:
            pm.Normal("n", observed=[[1]], total_size=[Ellipsis, Ellipsis])
            m.logp()
    with pm.Model() as model4:
        with pytest.raises(ValueError, match="only be passed to observed RVs"):
            pm.Normal("n", shape=(1, 1), total_size=[2, 2])