def _dispose(self):
        """Dispose of the pool for this instance, closing all connections."""
        self.close()
        # _DBProxy.dispose doesn't actually call dispose on the pool
        conn_params = self._get_conn_params()
        key = db_pool._serialize(**conn_params)
        try:
            pool = db_pool.pools[key]
        except __HOLE__:
            pass
        else:
            pool.dispose()
            del db_pool.pools[key]
dataset/ETHPy150Open opps/opps/opps/db/backends/postgresql_psycopg2/base.py/DatabaseWrapper._dispose