code: def _do_auto_predict(machine, X, *args):
      
      if auto_predict and hasattr(machine, "predict"):
          return machine.predict(X)
docs: Performs an automatic prediction for the specified machine and returns
      the predicted values.