class_docstr: Compiles the results of Wizard of Internet crowdsourcing task into a json dataset.
class_docstr_tok: ["Compiles","the","results","of","Wizard","of","Internet","crowdsourcing","task","into","a","json","dataset","."]
code: def is_unit_acceptable(self, unit_data):
      # Depending on the situation (in practice) we may be able to salvage incomplete data.
      # Here, we only keep completed and approved ones (discarding the rest).
      return unit_data["status"] in (
          AgentState.STATUS_ACCEPTED,
          AgentState.STATUS_APPROVED,
      )
  
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 1 for calling the WizardOfInternetResultsCompiler obj's underlying member method code with example usage: obj.is_unit_acceptable(unit_data) and returns: unknown