def superuser_login(client: R2RClient, config):
    """A fixture that ensures the client is logged in as superuser."""
    client.users.login(config.superuser_email, config.superuser_password)
    yield
    # After test, if needed, we can logout or reset
    # client.users.logout()
A fixture that ensures the client is logged in as superuser.
py/tests/integration/test_users.py