class_docstr: Test behaviour of query and interventions
docstr: Do should accept only state probabilities where the full distribution is provided
code: def test_do_expects_all_state_probabilities_sum_to_one(self, bn):
      """Do should accept only state probabilities where the full distribution is provided"""
  
      ie = InferenceEngine(bn)
  
      with pytest.raises(
          ValueError,
          match="The cpd for the provided observation must sum to 1",
      ):
          ie.do_intervention("d", {False: 0.7, True: 0.4})
  
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 9 for calling the TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_do_expects_all_state_probabilities_sum_to_one(bn) without return types