<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_feature(self, pr_name, pr_value):
 """ Add or update a node's feature. """

        setattr(self, pr_name, pr_value)
        self.features.add(pr_name)