docstr: Do should accept only state probabilities where all states in the original cpds are present
code: def test_do_expects_all_states_have_a_probability(
      self, train_model, train_data_idx
  ):
      """Do should accept only state probabilities where all states in the original cpds are present"""
  
      bn = BayesianNetwork(train_model)
      bn.fit_node_states(train_data_idx).fit_cpds(train_data_idx)
  
      ie = InferenceEngine(bn)
  
      with pytest.raises(
          ValueError,
          match="The cpd states do not match expected states*",
      ):
          ie.do_intervention("d", {1: 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 13 for calling the TestInferenceEngineIdx obj's underlying member method code with example usage: obj.test_do_expects_all_states_have_a_probability(train_model, train_data_idx) without return types