code: def marginal_zero(repertoire, node_index):
      
      index = [slice(None)] * repertoire.ndim
      index[node_index] = 0
  
      return repertoire[tuple(index)].sum()
docs: Return the marginal probability that the node is OFF.