class_docstr: Wikipedia gender.
class_docstr_tok: ["Wikipedia","gender","."]
docstr: [Abstract] Given the tuple output of the queue, return an act.
docstr_tok: ["[","Abstract","]","Given","the","tuple","output","of","the","queue",",","return","an","act","."]
code: def create_message(self, queue_output, entry_idx=0) -> "Message":
      """
      [Abstract] Given the tuple output of the queue, return an act.
      """
      par, title, lbl, gender, class_type = queue_output
      if self.class_task == "all":
          if class_type == "self":
              labels = gend_utils.UNKNOWN_LABELS[
                  "self"
              ]  # Not True neutral
          else:
              labels = [lbl]
      elif self.class_task == "single":
          labels = [gender]
  
      if self.mask_gendered_words:
          par = self._mask_gendered_words(par)
  
      return Message(
          {
              "text": par,
              "name": title,
              "labels": labels,
              "label_candidates": self.label_candidates[class_type],
              "episode_done": True,
              "id": "Wikipedia Gender",
          }
      )
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.message import Message
  from parlai.core.teachers import ChunkTeacher
  from parlai.tasks.wikipedia.build import build
  from parlai.utils.misc import warn_once
  import parlai.tasks.md_gender.utils
  from copy import deepcopy
  import json
  import os
  import random
  import re
  import spacy
  from typing import List
label_desc: Use image node_id 9 for calling the WikipediaTeacher obj's underlying member method code with example usage: obj.create_message(queue_output, entry_idx) and returns: Message