code: def is_valid_agent_chat_message(message, agent_id):
      return (
          message.get("text")
          and message.get("id") == agent_id
          and not message.get("is_search_query", False)
      )
  
file_path: ParlAI/parlai/crowdsourcing/projects/wizard_of_internet/acceptability.py
imports: import numpy
  from typing import Iterable, List
  from nltk.stem import PorterStemmer
  from parlai.crowdsourcing.utils.acceptability import AcceptabilityChecker, normalize_answer
  import parlai.utils.logging
label_desc: Use image node_id 3 for calling a global function with example usage: is_valid_agent_chat_message(message, agent_id) and returns: unknown