def create_toc(headlines, hyperlink=True, top_link=False, no_toc_header=False):
    processed = []
    if not no_toc_header:
        if top_link:
            processed.append('<a class="mk-toclify" id="table-of-contents"></a>\n')
        processed.append('# Table of Contents')

    for line in headlines:
        if hyperlink:
            item = '%s- [%s](#%s)' % ((line[2]-1)*'    ', line[0], line[1])
        else:
            item = '%s- %s' % ((line[2]-1)*'    ', line[0])
        processed.append(item)
    processed.append('\n')
    return processed
Ensure a Queue is properly populated from an iterable of urls.
dataset/ETHPy150Open phodal/awesome-iot/toc.py/create_toc--crossover with--dataset/ETHPy150Open sigmavirus24/requests-toolbelt/tests/threaded/test_pool.py/TestPool.test_from_urls_constructs_get_requests