<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _confirm_pos(self, pos):
 """look up widget for pos and default to None"""

        candidate = None
        if self._get_node(self._treelist, pos) is not None:
            candidate = pos
        return candidate