async def METHOD_NAME(spawn_client, fake2, snapshot, static_time, pg):
    client = await spawn_client(
        authenticated=True, administrator=True, flags=[FlagName.SPACES]
    )
    user_1 = await fake2.users.create()
    async with AsyncSession(pg) as session:
        session.add(
            SQLSpace(
                id=0,
                name="Space 0",
                description="",
                created_at=static_time.datetime,
                updated_at=static_time.datetime,
            )
        )
        await session.commit()
    await get_authorization_client_from_app(client.app).add(
        SpaceMembership(user_1.id, 0, SpaceRole.OWNER),
        UserRoleAssignment(user_1.id, 0, SpaceProjectRole.EDITOR),
    )
    resp = await client.patch(
        f"/spaces/0/members/{user_1.id}",
        {"role": "member", "label": SpaceLabelRole.MANAGER},
    )
    assert resp.status == 200
    assert await resp.json() == snapshot