<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _do_auto_predict(machine, X, *args):
 """Performs an automatic prediction for the specified machine and returns the predicted values. """

    if auto_predict and hasattr(machine, "predict"):
        return machine.predict(X)