docstr: Do should accept a map of state->p and update p accordingly
code: def test_do_accepts_all_state_probabilities(
      self, train_model, train_data_idx
  ):
      """Do should accept a map of state->p and update p accordingly"""
  
      bn = BayesianNetwork(train_model)
      bn.fit_node_states(train_data_idx).fit_cpds(train_data_idx)
  
      ie = InferenceEngine(bn)
      ie.do_intervention("d", {0: 0.7, 1: 0.3})
      assert math.isclose(ie.query()["d"][0], 0.7)
      assert math.isclose(ie.query()["d"][1], 0.3)
  
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 10 for calling the TestInferenceEngineIdx obj's underlying member method code with example usage: obj.test_do_accepts_all_state_probabilities(train_model, train_data_idx) without return types