code: def predict(self, X):
      y_pred_proba = self.predict_proba(X)
      return get_pred_from_proba(
          y_pred_proba=y_pred_proba, problem_type=self.problem_type
      )
  
imports: import logging
  import time
  from collections import Counter
  import numpy
  from ...constants import PROBLEM_TYPES
  from ...metrics import log_loss
  from ...utils import compute_weighted_metric, get_pred_from_proba
label_desc: Use image node_id 1 for calling the AbstractWeightedEnsemble obj's underlying member method code with example usage: obj.predict(X) and returns: get_pred_from_proba