code: def is_last_message_stale(
      interaction_message: DiscordMessage,
      last_message: DiscordMessage,
      bot_id: str,
  ) -> bool:
      return (
          last_message
          and last_message.id != interaction_message.id
          and last_message.author
          and last_message.author.id != bot_id
      )
  
file_path: gpt-discord-bot/src/utils.py
imports: from src.constants import ALLOWED_SERVER_IDS
  import logging
  from src.base import Message
  from discord import Message
  from typing import Optional, List
  import discord
  from src.constants import MAX_CHARS_PER_REPLY_MSG, INACTIVATE_THREAD_PREFIX
label_desc: Use image node_id 3 for calling a global function with example usage: is_last_message_stale(interaction_message, last_message, bot_id) and returns: unknown