<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_children(self, reset_parent=True):
 """ Remove all the children of this node. :param bool reset_parent: if ``True``, set to ``None`` the parent attribute of the children """

        if reset_parent:
            for child in self.children:
                child.parent = None
        self.__children = []