@staticmethod
def get_session():
    """Return a database session that can be used by the `QueryBuilder` to perform its query.

        :return: an instance of :class:`sqlalchemy.orm.session.Session`
        """
    from aiida.backends.sqlalchemy import get_scoped_session
    return get_scoped_session()
