How to train an ensemble of two CNNs and a classifier?

Is there a full blown example of how to ensemble two models for example- resnet152 and densenet161 for prediction on the same dataset? I would really appreciate it.