class_docstr: This code is private in scikit-learn 0.24, so it is copied here.
class_docstr_tok: ["This","code","is","private","in","scikit-learn","0.24",",","so","it","is","copied","here","."]
code: def _check_pos_label(pos_label, classes):
      if pos_label not in list(classes):
          raise ValueError(
              f"pos_label={pos_label} is not a valid label: {classes}"
          )
  
file_path: greykite/greykite/sklearn/sklearn_scorer.py
imports: import warnings
  from functools import partial
  import numpy
  from greykite.common.constants import PREDICTED_COL
label_desc: Use image node_id 2 for calling the _BaseScorer obj's underlying member method code with example usage: obj._check_pos_label(pos_label, classes) without return types