<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def highlight_code(self, ontospy_entity):
 """ produce an html version of Turtle code with syntax highlighted using Pygments CSS """

        try:
            pygments_code = highlight(ontospy_entity.rdf_source(),
                                      TurtleLexer(), HtmlFormatter())
            pygments_code_css = HtmlFormatter().get_style_defs('.highlight')
            return {
                "pygments_code": pygments_code,
                "pygments_code_css": pygments_code_css
            }
        except Exception as e:
            printDebug("Error: Pygmentize Failed", "red")
            return {}