def METHOD_NAME(self) -> User | dict:
    if self.name_type == NameType.REGULAR:
        return self.created_by
    parent_article = self.get_parent_article()
    parent_article_id = parent_article.id
    parent_article_created_by_id = parent_article.created_by.id
    comment_created_by_id = self.created_by.id
    # 댓글 작성자는 (작성자 id + parent article id + 시크릿)을 해시한 값으로 구별합니다.
    user_unique_num = comment_created_by_id + parent_article_id + HASH_SECRET_VALUE
    user_unique_encoding = str(hex(user_unique_num)).encode("utf-8")
    user_hash = hashlib.sha224(user_unique_encoding).hexdigest()
    user_hash_int = int(user_hash[-4:], 16)
    user_profile_picture = get_profile_picture(user_hash_int)
    if self.name_type == NameType.ANONYMOUS:
        if parent_article_created_by_id == comment_created_by_id:
            user_name = gettext("author")
        else:
            user_name = make_anonymous_name(user_hash_int, user_hash[-3:])
        return {
            "id": user_hash,
            "username": user_name,
            "profile": {
                "picture": default_storage.url(user_profile_picture),
                "nickname": user_name,
                "user": user_hash,
                "is_official": None,
                "is_school_admin": None,
            },
        }
    if self.name_type == NameType.REALNAME:
        if parent_article_created_by_id == comment_created_by_id:
            user_realname = gettext("author")
        else:
            user_realname = self.created_by.profile.realname
        return {
            "id": user_unique_num,
            "username": user_realname,
            "profile": {
                "picture": default_storage.url(user_profile_picture),
                "nickname": user_realname,
                "user": user_realname,
                "is_official": None,
                "is_school_admin": self.created_by.profile.is_school_admin
                if parent_article.parent_board.is_school_communication
                else None,
            },
        }