code: def make_priors_summary(component: DistributionalComponent) -> str:
      """Get a summary of terms and priors in a distributional component."""
      # Common effects
      priors_common = [
          prior_repr(term)
          for term in component.common_terms.values()
          if term.kind != "offset"
      ]
      if component.intercept_term:
          priors_common.insert(0, prior_repr(component.intercept_term))
  
      # Group-specific effects
      priors_group = [
          prior_repr(term)
          for term in component.group_specific_terms.values()
      ]
  
      # Offsets
      offsets = [
          f"{term.name} ~ 1" for term in component.offset_terms.values()
      ]
  
      # HSGP
      hsgp = [hsgp_repr(term) for term in component.hsgp_terms.values()]
  
      priors_dict = {
          "Common-level effects": priors_common,
          "Group-level effects": priors_group,
          "Offset effects": offsets,
          "HSGP contributions": hsgp,
      }
  
      priors_list = []
      for group, priors in priors_dict.items():
          if priors:
              priors_list.append(
                  group
                  + "\n"
                  + wrapify(indentify("\n".join(priors), 4), 100, 4)
              )
  
      return "\n\n".join(priors_list)
  
imports: import logging
  import warnings
  from copy import deepcopy
  from importlib.metadata import version
  import formulae
  import pymc
  import pandas
  from arviz.plots import plot_posterior
  from bambi.backend import PyMCModel
  from bambi.defaults import get_builtin_family
  from bambi.model_components import ConstantComponent, DistributionalComponent
  from bambi.families import Family, univariate
  from bambi.formula import Formula, check_ordinal_formula
  from bambi.priors import Prior, PriorScaler
  from bambi.transformations import transformations_namespace
  from bambi.utils import clean_formula_lhs, get_aliased_name, get_auxiliary_parameters, indentify, listify, remove_common_intercept, wrapify
label_desc: Use image node_id 4 for calling a global function with example usage: make_priors_summary(component) and returns: str