def get_last_status_in_session(self, session):
        """Last status in session.

        Helper function to be called by resources properties.
        """
        try:
            return self._last_status_in_session[session]
        except __HOLE__:
            raise errors.Error('The session %r does not seem to be valid as it does not have any last status' % session)
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/VisaLibraryBase.get_last_status_in_session