code: def generate_family(
      name, likelihood, link, family, default_priors=None
  ):
      """Generate a Bambi family.
  
      Parameters
      ----------
      name : str
          The name of the family.
      likelihood: bambi.Likelihood
          A representation of the likelihood function that corresponds to the family being created.
      link : bambi.Link
          A representation of the link function that corresponds to the family being created.
      family : subclass of bambi.Family
          A subclass of bambi.Family that generates the instance of the desired family.
      default_priors : dict
          Default priors for non-parent parameters.
  
      Returns
      -------
      bambi.Family
          The family instance.
      """
      likelihood = generate_likelihood(**likelihood)
      family = family(name, likelihood, link)
      if default_priors:
          family.set_default_priors(
              {k: generate_prior(v) for k, v in default_priors.items()}
          )
      return family
  
file_path: bambi/bambi/defaults/utils.py
imports: from bambi.defaults.distributions import SETTINGS_DISTRIBUTIONS
  from bambi.defaults.hsgp import HSGP_COV_PARAMS_DEFAULT_PRIORS
  from bambi.families import Likelihood
  from bambi.priors import Prior
label_desc: Use image node_id 5 for calling a global function with example usage: generate_family(name, likelihood, link, family, default_priors) and returns: family