def format_errors(errors):
    """
    Use this function to format serializer.errors.

    :param errors:
    :return: A `\n` separated string which can be displayed properly as a human-readable error message.
    """
    messages = []
    for field, error_detail in errors.items():
        if isinstance(error_detail, dict):
            error_message = format_errors(error_detail)
        else:
            error_message = ', '.join([str(e) for e in error_detail])

        messages.append(': '.join([str(field), error_message]))

    return '\n'.join(messages)