def METHOD_NAME(user_id, now=None):
    if settings.SESSIONS_PER_USER == -1:
        return []
    if now is None:
        now = tz_now()
    query_set = UserSessionMembership.objects.select_related('session').filter(user_id=user_id).order_by('-created')
    non_expire_memberships = [x for x in query_set if x.session.expire_date > now]
    return non_expire_memberships[settings.SESSIONS_PER_USER :]