def convert_to_html_table(example):
    """
    Return string representation of an HTML table for an Example object.

    This function illustrates how to extract information from Example
    objects. Notice that we are explicitly selecting the 'src', 'imt'
    and 'translation' lines. If an Example does not have such lines,
    the corresponding table lines will be empty.
    """
    src = example.get_words("src")
    imt = example.get_words("imt")
    trans = example.get_line("translation")
    table = lambda rows: "<table>\n{}\n</table>".format("\n".join(rows))
    tline = lambda cells: "<tr><td>{}</td></tr>".format("</td><td>".join(cells))
    mline = lambda line: '<tr><td colspan="{}">{}</tr>'.format(len(src), line)
    return table([tline(src), tline(imt), mline(trans)])