code: def run(self, stop_event):
      while True:
          try:
              chat_ids = self.check_message_count()
              for chat_id in chat_ids:
                  chat_memory = self.chat_task.memory.get_chat(chat_id)
  
                  message = self.get_last_message(chat_memory)
                  if message:
                      self.chat_task.on_message(chat_memory, message)
  
          except Exception as e:
              logger.error(e)
  
          if stop_event.is_set():
              return
          logger.debug(f"running {self.chat_task.bot_id}")
          time.sleep(7)
  
imports: import time
  from mindsdb_sql.parser.ast import Identifier, Select, Insert
  from mindsdb.utilities import log
  from mindsdb.utilities.context import context
  from .types import ChatBotMessage, BotException
label_desc: Use image node_id 2 for calling the MessageCountPolling obj's underlying member method code with example usage: obj.run(stop_event) without return types