def METHOD_NAME(engine):
    """Creates a readonly session.
    Args:
        engine (object): Engine to bind session to.
    Returns:
        object: Scoped session maker.
    """
    # Set session autocommit to true to ensure each query gets a new connection
    # from the pool.
    session = sessionmaker(bind=engine, autocommit=True, autoflush=False)()
    stub_out_flush_operation(session)
    return session