code: public static void clearEvidence(Network bn, int node) {
          if (bn.isEvidence(node)) {
              bn.clearEvidence(node);
              bn.updateBeliefs();
          }
      }
docs: Clear a hard evidence fixed in a given node
  
  @param bn
  @param node