def test_superuser_can_access_any_collection(client: R2RClient,
                                             user_owned_collection):
    """A superuser should be able to view and edit any collection."""
    # Superuser can view
    coll = client.collections.retrieve(user_owned_collection).results
    assert coll.id == user_owned_collection, (
        "Superuser cannot view a user collection.")

    # Superuser can also update
    updated = client.collections.update(user_owned_collection,
                                        name="Superuser Edit").results
    assert updated.name == "Superuser Edit", (
        "Superuser cannot edit collection.")
A superuser should be able to view and edit any collection.
py/tests/integration/test_collections_users_interaction.py