code: def get_response_dist(family):
      """Get the PyMC distribution for the response
  
      Parameters
      ----------
      family : bambi.Family
          The family for which the response distribution is wanted
  
      Returns
      -------
      pm.Distribution
          The response distribution
      """
      mapping = {
          "Cumulative": pm.Categorical,
          "StoppingRatio": pm.Categorical,
      }
  
      if family.likelihood.dist:
          dist = family.likelihood.dist
      elif family.likelihood.name in mapping:
          dist = mapping[family.likelihood.name]
      else:
          dist = getattr(pm, family.likelihood.name)
      return dist
  
file_path: bambi/bambi/families/family.py
imports: from typing import Dict, Union
  import numpy
  import pymc
  import xarray
  from bambi.families.link import Link
  from bambi.utils import get_auxiliary_parameters, get_aliased_name
label_desc: Use image node_id 1 for calling a global function with example usage: get_response_dist(family) and returns: dist