code: def create_attachment_message(attachment_item, quick_replies=None):
      """
      Create a message list made with only an attachment.
  
      quick_replies should be a list of options made with create_reply_option.
      """
      payload = {"attachment": attachment_item}
      if quick_replies:
          assert (
              len(quick_replies) <= MAX_QUICK_REPLIES
          ), "Number of quick replies {} greater than the max of {}".format(
              len(quick_replies), MAX_QUICK_REPLIES
          )
          payload["quick_replies"] = quick_replies
      return [payload]
  
file_path: ParlAI/parlai/chat_service/services/messenger/message_sender.py
imports: import json
  import logging
  import requests
  import parlai.chat_service.utils.logging
label_desc: Use image node_id 4 for calling a global function with example usage: create_attachment_message(attachment_item, quick_replies) and returns: list