def METHOD_NAME(*args):
    """Helper to format text we expect the KeyHintView to generate.
    Args:
        *args: One tuple for each row in the expected output.
               Tuples are of the form: (prefix, color, suffix, command).
    """
    text = '<table>'
    for group in args:
        text += ("<tr>"
                 "<td>{}</td>"
                 "<td style='color: {}'>{}</td>"
                 "<td style='padding-left: 2ex'>{}</td>"
                 "</tr>").format(*group)
    return text + '</table>'