<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_leaf(self):
 """ Returns True if a Node has no subnodes True False """

        return (not self.data) or \
               (all(not bool(c) for c, p in self.children))