def METHOD_NAME(self, icon_score: 'IconScoreBase', func_name: str):
    is_func_readonly = getattr(icon_score, '_IconScoreBase__is_func_readonly')
    if func_name is not None and is_func_readonly(func_name):
        self.func_type = IconScoreFuncType.READONLY
    else:
        self.func_type = IconScoreFuncType.WRITABLE