class_docstr: Test behaviour of query and interventions
docstr: Do should not allow the introduction of new states
code: def test_do_prevents_new_states_being_added(self, bn):
      """Do should not allow the introduction of new states"""
  
      ie = InferenceEngine(bn)
  
      with pytest.raises(
          ValueError,
          match="The cpd states do not match expected states*",
      ):
          ie.do_intervention("d", {False: 0.7, True: 0.3, "other": 0.0})
  
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 11 for calling the TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_do_prevents_new_states_being_added(bn) without return types