<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _self_time(self):
 """Returns the time spent in this workunit outside of any children."""

    return self.duration() - sum([child.duration() for child in self.children])