class_docstr: Test behaviour of query and interventions
docstr: Do should adjust marginals returned by query when given a different observation
code: def test_do_reflected_in_query(self, bn):
      """Do should adjust marginals returned by query when given a different observation"""
  
      ie = InferenceEngine(bn)
  
      assert ie.query({"a": "b"})["d"][True] != 1
      ie.do_intervention("d", True)
      assert ie.query({"a": "b"})["d"][True] == 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 12 for calling the TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_do_reflected_in_query(bn) without return types