code: def get_distribution_from_likelihood(likelihood):
      """
      It works because both `Prior` and `Likelihood` instances have a `name` and a `dist` argument.
      """
      return get_distribution_from_prior(likelihood)
  
file_path: bambi/bambi/backend/utils.py
imports: import inspect
  from functools import partial
  import pytensor.tensor
  import pymc
label_desc: Use image node_id 4 for calling a global function with example usage: get_distribution_from_likelihood(likelihood) and returns: get_distribution_from_prior