class_docstr: Generates contexts shown to crowdsourced workers during data collection.
class_docstr_tok: ["Generates","contexts","shown","to","crowdsourced","workers","during","data","collection","."]
docstr: Get context information to be shown at the beginning of one conversation. Values
  in return dict:
  
  - context_dataset: the dataset
  - personas: a list of dict where each dictionary is a persona as stored in this task messages.
docstr_tok: ["Get","context","information","to","be","shown","at","the","beginning","of","one","conversation",".","Values","in","return","dict",":","-","context_dataset",":","the","dataset","-","personas",":","a","list","of","dict","where","each","dictionary","is","a","persona","as","stored","in","this","task","messages","."]
code: def get_context(self) -> dict:
      """
      Get context information to be shown at the beginning of one conversation. Values
      in return dict:
  
      - context_dataset: the dataset
      - personas: a list of dict where each dictionary is a persona as stored in this task messages.
      """
      setting = random.choice(get_settings())
      return {
          "context_dataset": "multi-modelchat",
          "personas": setting["personas"],
          "location": setting["location"],
      }
  
imports: import json
  import os
  import numpy
  import random
  import time
  from parlai.core.message import Message
  from parlai.core.worlds import validate
  import parlai.utils.logging
  from parlai.crowdsourcing.tasks.model_chat.utils import Compatibility
  from parlai.crowdsourcing.tasks.model_chat.worlds import get_bot_worker, ModelChatWorld, ModelChatOnboardWorld
label_desc: Use image node_id 2 for calling the ContextGenerator obj's underlying member method code with example usage: obj.get_context() and returns: dict