code: def test_likelihood_bad_parent():
      with pytest.raises(
          ValueError,
          match="'Mu' is not a valid parameter for the likelihood 'Normal'",
      ):
          bmb.Likelihood("Normal", params=["mu", "sigma"], parent="Mu")
  
      with pytest.raises(
          ValueError,
          match="'Mu' is not a valid parameter for the likelihood 'Normal'",
      ):
          bmb.Likelihood("Normal", parent="Mu")
  
      with pytest.raises(
          ValueError,
          match="'mu' is not a valid parameter for the likelihood 'Bernoulli'",
      ):
          bmb.Likelihood("Bernoulli", params=["p"], parent="mu")
  
      with pytest.raises(
          ValueError,
          match="'mu' is not a valid parameter for the likelihood 'Bernoulli'",
      ):
          bmb.Likelihood("Bernoulli", parent="mu")
  
imports: from os.path import dirname, join
  import pytest
  import numpy
  import pymc
  import pandas
  from scipy import special
  import bambi
label_desc: Use image node_id 4 for calling a global function with example usage: test_likelihood_bad_parent() without return types