@logged
    def do_login(self, username, password):
        session_holder = self._call('login',username=username, password=password)
        self.session_id = self._parse_session_id(session_holder)
        if self.session_id is not None:
            return self.session_id
        else:
            raise InvalidUserOrPasswordError("Unable to login with username=%s and password=%s" % (self.username, self.password))
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/admin/bot/client.py/AbstractBot.do_login/original