docstr: Do should adjust marginals returned by query when given a different observation
code: def test_do_reflected_in_query(self, train_model, train_data_idx):
      """Do should adjust marginals returned by query when given a different observation"""
  
      bn = BayesianNetwork(train_model)
      bn.fit_node_states(train_data_idx).fit_cpds(train_data_idx)
  
      ie = InferenceEngine(bn)
  
      assert ie.query({"a": 1})["d"][1] != 1
      ie.do_intervention("d", 1)
      assert ie.query({"a": 1})["d"][1] == 1
  
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 15 for calling the TestInferenceEngineIdx obj's underlying member method code with example usage: obj.test_do_reflected_in_query(train_model, train_data_idx) without return types