code: def remove_dead_examples(dataset):
      """Removes compounds with no weight.
  
      Parameters
      ----------
      dataset: dc.data.Dataset
          Source dataset.
      """
      w = dataset.w
      nonzero_inds = np.nonzero(np.sum(w, axis=1))
  
      # Remove support indices
      X = dataset.X[nonzero_inds]
      y = dataset.y[nonzero_inds]
      w = dataset.w[nonzero_inds]
      ids = dataset.ids[nonzero_inds]
  
      return NumpyDataset(X, y, w, ids)
  
imports: import logging
  import time
  import numpy
  from deepchem.data import NumpyDataset
label_desc: Use image node_id 1 for calling a global function with example usage: remove_dead_examples(dataset) and returns: NumpyDataset