code: def _maybe_remove_pool(cls, pid):
          
          if not len(cls._pools[pid]):
              del cls._pools[pid]
docs: If the pool has no open connections, remove it
  
          :param str pid: The pool id to clean