def METHOD_NAME(topo, request):
    """
    Add nentries entries and nentries subentries.
    """
    users = []
    # Add normal entries.
    user = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
    for i in range(0, nentries):
        user1 = user.create_test_user(uid=i)
        users.append(user1)
    # Add subentries.
    for i in range(nentries, nentries * 2):
        user1 = user.create_test_user(uid=i)
        user1.add("objectclass", "ldapsubentry")
        users.append(user1)
    def fin():
        for user in users:
            user.delete()
    request.addfinalizer(fin)