code: def is_full(cls, pid):
          
          with cls._lock:
              cls._ensure_pool_exists(pid)
              return cls._pools[pid].is_full
docs: Return a bool indicating if the specified pool is full
  
          :param str pid: The pool id
          :rtype: bool