code: def get_distribution(dist):
      """Return a PyMC distribution."""
      if isinstance(dist, str):
          if dist in MAPPING:
              dist = MAPPING[dist]
          elif hasattr(pm, dist):
              dist = getattr(pm, dist)
          else:
              raise ValueError(
                  f"The Distribution '{dist}' was not found in PyMC"
              )
      return dist
  
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 1 for calling a global function with example usage: get_distribution(dist) and returns: dist