code: def release(self, conn):
          
          if conn.in_transaction:
              raise InvalidRequestError(
                  "Cannot release a connection with "
                  "not finished transaction"
              )
          raw = conn.connection
          res = yield from self._pool.release(raw)
          return res
docs: Revert back connection to pool.