<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def default_output_fn(prediction, accept):
 """Function responsible to serialize the prediction for the response. Args: prediction (obj):
 prediction returned by predict_fn . accept (str):
 accept content-type expected by the client. Returns: (worker.Response):
 a Flask response object with the following args: * Args: response: the serialized data to return accept: the content-type that the data was transformed to. """

    return _worker.Response(response=_encoders.encode(prediction, accept), mimetype=accept)