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