class_docstr: Test behaviour of query and interventions
docstr: Observing the state of a node should affect the marginals of dependent nodes
code: def test_observations_affect_marginals(self, bn):
      """Observing the state of a node should affect the marginals of dependent nodes"""
  
      ie = InferenceEngine(bn)
  
      m1 = ie.query({})
      m2 = ie.query({"d": True})
  
      assert m2["d"][False] == 0
      assert m2["d"][True] == 1
      assert not math.isclose(m2["b"]["x"], m1["b"]["x"], abs_tol=0.05)
  
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 3 for calling the TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_observations_affect_marginals(bn) without return types