class_docstr: Abstract class for compiling results of crowdsourcing runs.
  
  Currently only provides utility attributes/methods for analyzing turn annotations.
docstr: Method for returning the final results as a dataframe or a json.
  
  For Dict output each key is a unique identifier (eg Assignment ID) for a unit of
  crowdsourcing work. The data for that unit is stored in the value as dictionary.
  
  Each row of the dataframe consists of one utterance of one conversation, or crowdsourcing interaction.
  
  NOTE: Preference for new projects is Dict output (see the TODO below).
  TODO: Only support Dict. Deprecate ` pd.DataFrame` when no other code is relying on it.
docstr_tok: ["Method","for","returning","the","final","results","as","a","dataframe","or","a","json",".","For","Dict","output","each","key","is","a","unique","identifier","(","eg","Assignment","ID",")","for","a","unit","of","crowdsourcing","work",".","The","data","for","that","unit","is","stored","in","the","value","as","dictionary",".","Each","row","of","the","dataframe","consists","of","one","utterance","of","one","conversation",",","or","crowdsourcing","interaction",".","NOTE",":","Preference","for","new","projects","is","Dict","output","(","see","the","TODO","below",")",".","TODO",":","Only","support","Dict",".","Deprecate","`","pd.DataFrame","`","when","no","other","code","is","relying","on","it","."]
code: def compile_results(self) -> Union[pd.DataFrame, Dict[str, Any]]:
      """
      Method for returning the final results as a dataframe or a json.
  
      For Dict output each key is a unique identifier (eg Assignment ID) for a unit of
      crowdsourcing work. The data for that unit is stored in the value as dictionary.
  
      Each row of the dataframe consists of one utterance of one conversation, or crowdsourcing interaction.
  
      NOTE: Preference for new projects is Dict output (see the TODO below).
      TODO: Only support Dict. Deprecate ` pd.DataFrame` when no other code is relying on it.
      """
  
imports: from __future__ import annotations
  import argparse
  import os
  from abc import ABC, abstractmethod
  from datetime import datetime
  import json
  from typing import Any, Dict, List, Union
  import pandas
  from parlai.core.opt import Opt
  import parlai.utils.logging
label_desc: Use image node_id 11 for calling the AbstractResultsCompiler obj's underlying member method code with example usage: obj.compile_results() without return types