<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def PenForNode( self, node, depth=0 ):
 """Determine the pen to use to display the given node"""

        if node == self.selectedNode:
            return self.SELECTED_PEN
        return self.DEFAULT_PEN