@classmethod
def set_session_factory(cls, session_factory):
    """
        Classmethod to set the session factory
        :class:`~sqlalchemy_unchained.SessionManager` should use.

        :param session_factory: The session factory callable.
        """
    cls._session_factory = session_factory
