def METHOD_NAME(scope):
    if scope == "list":
        return [None]
    else:
        return [
            {
                "owner": {"id": random.randrange(300, 400)},
                "invitee": {"id": random.randrange(400, 500)},
                "role": role,
                "organization": {"id": random.randrange(500, 600)},
            }
            for role in ORG_ROLES
            if role is not None
        ]