def METHOD_NAME(ev: logparser.LogEvent) -> str:
    """Generate html for a log message."""
    if ev.type == ["tc", "begin"]:
        return f"""\
                   <div class="section block">
                     <div class="section-header block-header">
                       <span class="testcase">{ev.data['name']}</span>
                     </div>
                     <div class="section-content block-content">
                       """
    elif ev.type == ["tc", "end"]:
        if ev.data.get("skipped", False):
            return f"""\
                       <div class="status-skipped">
                         <pre>Skipped ({ev.data['skip_reason']}),