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