def anonymous_id_from_user_id(user_id):
 user = User.objects.get(id=user_id)
 return anonymous_id_for_user(user, None)

def anonymous_id_from_user_id ( user_id ) : user = User . objects . get ( id = user_id ) return anonymous_id_for_user ( user , None )
gets a users anonymous id from their user id .