class_docstr: Container for keeping the content of one interaction between agents.
class_docstr_tok: ["Container","for","keeping","the","content","of","one","interaction","between","agents","."]
code: def get_context(self):
      if self._sender == APPRENTICE:
          return {}
  
      context_data = self._message.get("task_data", None)
  
      if self._sender == WIZARD:
          if not context_data:
              return {}
          else:
              if "form_responses" in context_data:
                  return {
                      "Persona": context_data["form_responses"][0][
                          "response"
                      ]
                  }
              return {
                  CONTENTS: context_data.get("text_candidates", ""),
                  SELECTED_CONTENTS: context_data.get(
                      "selected_text_candidates", ""
                  ),
              }
      # Must be SEARCH_AGENT
      return {CONTENTS: context_data["search_results"]}
  
imports: from typing import Dict, Union
  import parlai.utils.logging
  from parlai.crowdsourcing.projects.wizard_of_internet.wizard_internet_blueprint import WIZARD_INTERNET_PARLAICHAT_BLUEPRINT
  from parlai.crowdsourcing.utils.analysis import AbstractResultsCompiler
  from mephisto.abstractions.blueprint import AgentState
label_desc: Use image node_id 5 for calling the ChatMessage obj's underlying member method code with example usage: obj.get_context() and returns: dict, dict, dict, dict, dict