<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def doc_to_html(doc, doc_format="ROBOT"):
 """Convert documentation to HTML"""

    from robot.libdocpkg.htmlwriter import DocToHtml
    return DocToHtml(doc_format)(doc)