code: def session(self):
          
          engine = self.engine
          connection = engine.connect()
          db_session = scoped_session(
              sessionmaker(autocommit=False, autoflush=True, bind=engine))
          yield db_session
          db_session.close()
          connection.close()
docs: Creates a context with an open SQLAlchemy session.