code: def __init__(self, clf, preprocessor=None):
      if not hasattr(clf, "predict"):
          raise AttributeError(
              "Classifier object is expected to have a predict method!"
          )
  
      self.clf = clf
      self.predict_fcn = clf.predict
      self.preprocessor = preprocessor
  
file_path: alibi/alibi/utils/wrappers.py
imports: import numpy
  from functools import singledispatch, update_wrapper
label_desc: Use image node_id 1 to create a new Predictor object  with example: obj = Predictor(clf, preprocessor)