class_docstr: Test behaviour of query and interventions
docstr: It should not be possible to create an isolated node in the network
code: def test_do_on_node_with_no_effects_not_allowed(self, bn):
      """It should not be possible to create an isolated node in the network"""
  
      ie = InferenceEngine(bn)
  
      with pytest.raises(
          ValueError,
          match="Do calculus cannot be applied because it would result in an isolate",
      ):
          ie.do_intervention("a", "b")
  
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 6 for calling the TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_do_on_node_with_no_effects_not_allowed(bn) without return types