Is there an example on how to work with generalized mixture models?

If I replace n with a constant value in pm.Binomial.dist I don’t get a NaN value for mixture.