def METHOD_NAME(system_yaml):
    """
    Converts a YAML description of a system into an html table.
    """
    try:
        y = yaml.load(system_yaml, Loader=yaml.SafeLoader)
    except yaml.scanner.ScannerError as e:
        print(system_yaml, file=sys.stderr)
        raise e
    input_port_html = ""
    if "input_ports" in y:
        for p in y["input_ports"]:
            input_port_html += (
                f'<tr><td align=right style=\"padding:5px 0px 5px 0px\">{p}'
                f'&rarr;</td></tr>')
    output_port_html = ""
    if "output_ports" in y:
        for p in y["output_ports"]:
            output_port_html += (
                '<tr><td align=left style=\"padding:5px 0px 5px 0px\">'
                f'&rarr; {p}</td></tr>')
    # Note: keeping this on a single line avoids having to handle comment line
    # markers (e.g. * or ///)
    html = (
        f'<table align=center cellpadding=0 cellspacing=0><tr align=center>'
        f'<td style=\"vertical-align:middle\">'
        f'<table cellspacing=0 cellpadding=0>{input_port_html}</table>'
        f'</td>'
        f'<td align=center style=\"border:solid;padding-left:20px;'
        f'padding-right:20px;vertical-align:middle\" bgcolor=#F0F0F0>'
        f'{y["name"]}</td>'
        f'<td style=\"vertical-align:middle\">'
        f'<table cellspacing=0 cellpadding=0>{output_port_html}</table>'
        f'</td></tr></table>')
    return html