code: def default_output_fn(prediction, accept):
      
      return _worker.Response(response=_encoders.encode(prediction, accept), mimetype=accept)
docs: 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.