Complex model on PYMC3 - Nonlinear Hierarchical model?

You can do a search in this discourse, there are a few related discussions: https://discourse.pymc.io/search?q=DensityDist
Also there are a few examples in the docs.pymc.io