def METHOD_NAME(source, language, class_name, options, md, **kwargs):
    """Format source as tabs with example"""
    global TAB_COUNT
    TAB_COUNT += 1
    chunks = source.split("-----\n")
    example = chunks[0]
    source = [chunk.split("\n", 1) for chunk in chunks[1:]]
    tabs, tab_panes, id_value, classes = prepare_tabs(
        source, class_name, kwargs, TAB_COUNT, example=True
    )
    return EXAMPLE_TAB_OUTER_TEMPLATE.format(
        example=example,
        tabs=tabs,
        tab_panes=tab_panes,
        id_value=id_value,
        classes=classes,
    )