<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _maybe_remove_pool(cls, pid):
 """If the pool has no open connections, remove it :param str pid: The pool id to clean """

        if not len(cls._pools[pid]):
            del cls._pools[pid]