<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def detachChildren(self):
 """ Detach and return this element's children. @return: The element's children (detached). """

        detached = self.children
        self.children = []
        for child in detached:
            child.parent = None
        return detached