def test_owner_cannot_access_deleted_member_info_after_removal(
    user_owned_collection,
    normal_user_client: R2RClient,
    another_normal_user_client: R2RClient,
):
    """After the owner removes a user from the collection, ensure that attempts
    to perform collection-specific actions with that user fail."""
    # Add another user to the collection
    another_user_id = another_normal_user_client.users.me().results.id
    normal_user_client.collections.add_user(user_owned_collection,
                                            another_user_id)

    # Remove them
    normal_user_client.collections.remove_user(user_owned_collection,
                                               another_user_id)

    # Now, try listing collections for that removed user (as owner),
    # if there's an endpoint that filters by user, to ensure no special access remains.
    # If no such endpoint exists, this test can be adapted to try another relevant action.
    # For demonstration, we might attempt to retrieve user details as owner:
    with pytest.raises(R2RException) as exc_info:
        normal_user_client.users.retrieve(another_user_id)
    # We expect a 403 because normal_user_client is not superuser and not that user.
    assert exc_info.value.status_code == 403, (
        "Owner should not access removed member's user info.")
After the owner removes a user from the collection, ensure that attempts
    to perform collection-specific actions with that user fail.
py/tests/integration/test_collections_users_interaction.py