code: def test_likelihood_class():
      # bmb.Likelihood with recognized name
      likelihood = bmb.Likelihood("Normal", ["mu", "sigma"], "mu")
      for name in ["name", "params", "parent", "dist"]:
          assert hasattr(likelihood, name)
  
      # A likelihood with unrecognized name
      # The class is not going to complain. Whether "Magic" works in PyMC is up to the user.
      likelihood = bmb.Likelihood(
          "Magic", ["Wizard", "Witcher"], "Wizard"
      )
      for name in ["name", "params", "parent", "dist"]:
          assert hasattr(likelihood, name)
  
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 3 for calling a global function with example usage: test_likelihood_class() without return types