def METHOD_NAME(testdataset1: Dataset):
    DatasetSink(testdataset1).clear()
    assert len(list(iter_dataset_statements(testdataset1))) == 0
    context = Context(testdataset1)
    context.begin(clear=True)
    assert len(context.resources.all()) == 0
    func = load_entry_point(testdataset1)
    func(context)
    assert context.stats.entities > 5, context.stats.entities
    assert (
        context.stats.statements > context.stats.entities * 2
    ), context.stats.statements
    assert len(context.resources.all()) == 1
    context.close()
    assert len(list(iter_dataset_statements(testdataset1))) == context.stats.statements