<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def clear_waiting_coordinators(self, cancel=False):
        ''' remove all entries from waiting queue or cancell all in waiting queue '''
        with self._lockw:
            if cancel:
                for _coordinator in self._waiting_transfer_coordinators:
                    _coordinator.notify_cancelled("Clear Waiting Queue", False)
            self._waiting_transfer_coordinators.clear()