class_docstr: A chat world in which an image is shown to the worker and bot at the beginning.
class_docstr_tok: ["A","chat","world","in","which","an","image","is","shown","to","the","worker","and","bot","at","the","beginning","."]
docstr: Add image-specific fields to the final chat data.
docstr_tok: ["Add","image-specific","fields","to","the","final","chat","data","."]
code: def get_final_chat_data(self) -> Dict[str, Any]:
      """
      Add image-specific fields to the final chat data.
      """
      data = super().get_final_chat_data()
      data["image_idx"] = self.image_idx
      return data
  
file_path: ParlAI/parlai/crowdsourcing/tasks/model_chat/worlds_image_chat.py
imports: from tempfile import NamedTemporaryFile
  from typing import Any, Dict, List, Tuple
  from parlai.core.image_featurizers import ImageLoader
  from parlai.core.message import Message
  from parlai.core.worlds import validate
  from parlai.crowdsourcing.tasks.model_chat.utils import Compatibility, get_image_src
  from parlai.crowdsourcing.tasks.model_chat.worlds import BaseModelChatWorld, get_bot_worker
label_desc: Use image node_id 4 for calling the ModelImageChatWorld obj's underlying member method code with example usage: obj.get_final_chat_data() and returns: data