code: def test_censored_invalid_dist(self):
      with pm.Model():
          invalid_dist = pm.Normal
          with pytest.raises(
              ValueError,
              match=r"Censoring dist must be a distribution created via the",
          ):
              x = pm.Censored("x", invalid_dist, lower=None, upper=None)
  
      with pm.Model():
          mv_dist = pm.Dirichlet.dist(a=[1, 1, 1])
          with pytest.raises(
              NotImplementedError,
              match="Censoring of multivariate distributions has not been implemented yet",
          ):
              x = pm.Censored("x", mv_dist, lower=None, upper=None)
  
      with pm.Model():
          registered_dist = pm.Normal("dist")
          with pytest.raises(
              ValueError,
              match="The dist dist was already registered in the current model",
          ):
              x = pm.Censored(
                  "x", registered_dist, lower=None, upper=None
              )
  
file_path: pymc/tests/distributions/test_censored.py
imports: import numpy
  import pytest
  import pymc
  from pymc.distributions.shape_utils import change_dist_size
label_desc: Use image node_id 2 for calling the TestCensored obj's underlying member method code with example usage: obj.test_censored_invalid_dist() without return types