<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disconnect_pools(self):
 """Disconnects all connections from the internal pools."""

        with self._lock:
            for pool in self._pools.itervalues():
                pool.disconnect()
            self._pools.clear()