<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_size(self, size):
 """Set figure size"""

        w, h = size
        self.root.set('width', w)
        self.root.set('height', h)