human
Complete this python program:
def errors_from_deserialization_exceptions(exceptions, included=False):
assistant
#Here is the Python code you requested.

    """Returns an errors response object, as returned by
    :func:`errors_response`, representing the given list of
    :exc:`DeserializationException` objects.
    If `included` is ``True``, this indicates that the exceptions were
    raised by attempts to serialize resources included in a compound
    document; this modifies the error message for the exceptions a bit.
    """
    def _to_error(exception):
        detail = exception.message()
        status = exception.status
        return error(status=status, detail=detail)
    errors = list(map(_to_error, exceptions))
    if (len(errors) == 1):
        status = errors[0]['status']
    else:
        status = 400
    return errors_response(status, errors)