def METHOD_NAME(self, tmpdir, data_node, repo):
    repository = repo()
    repository.base_path = tmpdir
    # Create 5 entities with version 1.0 and 5 entities with version 2.0
    for i in range(10):
        data_node.id = DataNodeId(f"data_node-{i}")
        data_node._version = f"{(i+1) // 5}.0"
        repository._save(data_node)
    objs = repository._load_all()
    assert len(objs) == 10
    repository._delete_by("version", "1.0")
    assert len(repository._load_all()) == 5