class_docstr: Base class for a person on messenger that can act in a ParlAI world.
class_docstr_tok: ["Base","class","for","a","person","on","messenger","that","can","act","in","a","ParlAI","world","."]
docstr: Determine if a message is an image attempt.
  
  The API changes frequently so could be an image for a number of reasons.
docstr_tok: ["Determine","if","a","message","is","an","image","attempt",".","The","API","changes","frequently","so","could","be","an","image","for","a","number","of","reasons","."]
code: def _is_image_attempt(self, message):
      """
      Determine if a message is an image attempt.
  
      The API changes frequently so could be an image for a number of reasons.
      """
      img_attempt = False
      if "attachments" in message:
          img_attempt = message["attachments"][0]["type"] == "image"
      elif "image" in message:
          img_attempt = True
      return img_attempt
  
file_path: ParlAI/parlai/chat_service/services/messenger/agents.py
imports: import time
  from parlai.chat_service.core.agents import ChatServiceAgent
label_desc: Use image node_id 4 for calling the MessengerAgent obj's underlying member method code with example usage: obj._is_image_attempt(message) and returns: img_attempt