@classmethod
    def _user_data(cls, user_id, username, all_users_by_id):
        if user_id in all_users_by_id:
            user = all_users_by_id[user_id]
            return (user._id, user.username, user.doc_type, user.email)
        elif user_id == DEMO_USER_ID:
            return (user_id, username, 'DemoUser', '')
        elif username == JAVA_ADMIN_USERNAME:
            return (user_id, username, 'AdminUser', '')
        else:
            return (user_id, username, 'UnknownUser', '')
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/data_analytics/malt_generator.py/MALTTableGenerator._user_data/original