This is create Template based bayesian network.