class_docstr: Test behaviour of query and interventions
docstr: Do should accept a map of state->p and update p accordingly
code: def test_do_accepts_all_state_probabilities(self, bn):
      """Do should accept a map of state->p and update p accordingly"""
  
      ie = InferenceEngine(bn)
      ie.do_intervention("d", {False: 0.7, True: 0.3})
      assert math.isclose(ie.query()["d"][False], 0.7)
      assert math.isclose(ie.query()["d"][True], 0.3)
  
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 8 for calling the TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_do_accepts_all_state_probabilities(bn) without return types