

@classmethod
@gen.coroutine
def _GetNameFromUserId(cls, client, user_id, prefer_given_name=True):
    'Looks up a user by id and returns the name of the user by calling _GetNameFromUser.'
    from viewfinder.backend.db.user import User
    user = (yield gen.Task(User.Query, client, user_id, None))
    raise gen.Return(AlertManager._GetNameFromUser(user, prefer_given_name))

dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py AlertManager._GetNameFromUserId/original