<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def border(self, L):
 """Append to L the border of the subtree. """

        if self.shape == L_shape:
            L.append(self.value)
        else:
            for x in self.sons:
                x.border(L)