code: def set_error(self, message):
      task_record = db.Tasks.query.get(self.task_id)
      task_record.last_error = str(message)
      db.session.commit()
  
imports: from mindsdb.interfaces.storage import db
label_desc: Use image node_id 3 for calling the BaseTask obj's underlying member method code with example usage: obj.set_error(message) without return types