code: def __init__(self, ebunch=None, latents=set()):
      logger.warning(
          "BayesianModel has been renamed to BayesianNetwork. Please use BayesianNetwork class, BayesianModel will be removed in future."
      )
      super(BayesianModel, self).__init__(
          ebunch=ebunch, latents=latents
      )
  
imports: from pgmpy.global_vars import logger
  from pgmpy.models import BayesianNetwork
label_desc: Use image node_id 1 to create a new BayesianModel object from inherited base classes: BayesianNetwork with example: obj = BayesianModel(ebunch, latents)