def process(self, user_id, user_text):
        if user_id == 0:
            return None  # Doesn't work for anons
        else:
            user_doc_map = self.extractor.get_user_doc_map([user_text],
                                                           usprop=USER_PROPS)

            if user_text not in user_doc_map:
                raise UserNotFound(self.user, user_text)
            else:
                return user_doc_map[user_text]
dataset/ETHPy150Open wiki-ai/revscoring/revscoring/extractors/api/datasources.py/UserInfoDoc.process/original