<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_metadata_for_node(self, node, metadata):
 """ Sets the metadata for the specified node to the supplied dictionary of values. Any existing metadata is cleared. """

        return self.manager.set_metadata(self, metadata, node=node)