code: def remove(self, connection):
          
          cid = id(connection)
          if cid not in self.connections:
              raise ConnectionNotFoundError(self.id, cid)
          self.connection_handle(connection).close()
          with self._lock:
              del self.connections[cid]
          LOGGER.debug('Pool %s removed connection %s', self.id, cid)
docs: Remove the connection from the pool
  
          :param connection: The connection to remove
          :type connection: psycopg2.extensions.connection
          :raises: ConnectionNotFoundError
          :raises: ConnectionBusyError