class_docstr: Test behaviour of query and interventions
docstr: Resetting Do operator should re-introduce the original conditional dependencies
code: def test_reset_do_sets_probabilities_back_to_initial_state(
      self, bn, train_data_discrete_marginals
  ):
      """Resetting Do operator should re-introduce the original conditional dependencies"""
  
      ie = InferenceEngine(bn)
      ie.do_intervention("d", {False: 0.7, True: 0.3})
      ie.reset_do("d")
  
      assert math.isclose(
          ie.query()["d"][False],
          train_data_discrete_marginals["d"][False],
      )
      assert math.isclose(
          ie.query()["d"][False],
          train_data_discrete_marginals["d"][False],
      )
  
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 TestInferenceEngineDiscrete obj's underlying member method code with example usage: obj.test_reset_do_sets_probabilities_back_to_initial_state(bn, train_data_discrete_marginals) without return types