docstr: It should be possible to create a new Inference object from an existing pgmpy model
code: def test_create_inference_from_bn(self, train_model, train_data_idx):
      """It should be possible to create a new Inference object from an existing pgmpy model"""
  
      bn = BayesianNetwork(train_model).fit_node_states(train_data_idx)
      bn.fit_cpds(train_data_idx)
      InferenceEngine(bn)
  
imports: import math
  import pytest
  from causalnex.inference import InferenceEngine
  from causalnex.network import BayesianNetwork
  from causalnex.structure import StructureModel
  from causalnex.structure.notears import from_pandas
label_desc: Use image node_id 1 for calling the TestInferenceEngineIdx obj's underlying member method code with example usage: obj.test_create_inference_from_bn(train_model, train_data_idx) without return types