def METHOD_NAME(self, context=None):
    """ Render this message for use by a mentoring block. """
    html = f'<div class="submission-message {self.type}">{self.content}</div>'
    return Fragment(html)