class_docstr: Wikipedia gender.
class_docstr_tok: ["Wikipedia","gender","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      super().add_cmdline_args(parser, partial_opt)
      parser = gend_utils.add_common_args(parser)
      agent = parser.add_argument_group("Wiki gender")
      agent.add_argument(
          "--class-task",
          type=str,
          default="all",
          choices=["single", "all"],
          help="Rank against all possibilities vs. F/M/N/NB",
      )
      agent.add_argument(
          "--mask-gendered-words",
          type="bool",
          default=False,
          help="Mask explicitly gendered words.",
      )
      return parser
  
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 1 for calling the WikipediaTeacher obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser