code: def __init__(self, score_func, sign, kwargs, error_score=np.nan):
      super().__init__(score_func=score_func, sign=sign, kwargs=kwargs)
      self.error_score = error_score
  
imports: import traceback
  import warnings
  from typing import Callable
  import numpy
  from sklearn.exceptions import FitFailedWarning
  from sklearn.metrics._scorer import _PredictScorer, _ProbaScorer, _ThresholdScorer
  from sklearn.preprocessing import LabelEncoder
  from sklearn.utils import _safe_indexing
  from pycaret.utils.generic import get_label_encoder
label_desc: Use image node_id 1 to create a new _ProbaScorerWithErrorScore object from inherited base classes: _ProbaScorer with example: obj = _ProbaScorerWithErrorScore(score_func, sign, kwargs, error_score)