code: def report_all_label(self):
          
  
          labels = np.empty(len(self.dataset), dtype=int)
          for pruning in self.prunings:
              best_label = self._best_label(pruning)
              leaves = self._find_leaves(pruning)
              labels[leaves] = best_label
          return labels
docs: Return the best label of the asked entry.
  
          Parameters
          ----------
  
          Returns
          -------
          labels: list of object, shape=(m)
              The best label of all samples.