def parse_template(token_dict, template_html, descriptors):
    """Create an TemplatePage object by parsing the annotated html."""
    parser = SlybotTemplatePageParser(token_dict)
    parser.feed(template_html)
    return parser.to_template(descriptors)
Create an TemplatePage object by parsing the annotated html.
slybot/slybot/plugins/scrapely_annotations/extraction/pageparsing.py