<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_attr(self, key: str, value):
 """Sets node attribute. Can be customized by attr_setter property"""

        self.attr_setter(self, key, value)