def METHOD_NAME(library):
    library.add_heading("Whatever")
    library.add_heading("Whatever")
    library.add_heading("Whatever")
    library.add_heading("Whatever")
    assert len(library.elements) == 4
    library.clear_elements()
    assert len(library.elements) == 0