class_docstr: Predict the gender of character given the dialogue utterance.
class_docstr_tok: ["Predict","the","gender","of","character","given","the","dialogue","utterance","."]
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("ConvAI2 gender")
      agent.add_argument(
          "--convai2-use-probably",
          type="bool",
          default=True,
          help="Use the probable gender of the persona as "
          "determined by crowdworkers, instead of the "
          "definitive one",
      )
      agent.add_argument(
          "--labels-to-use",
          type=str,
          default="all",
          choices=["all", "self", "partner"],
          help="Which labels to use for this teacher",
      )
      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 FixedDialogTeacher
  from parlai.tasks.convai2.agents import BothTeacher
  from parlai.tasks.md_gender.build import build
  from parlai.utils.misc import warn_once
  import parlai.tasks.md_gender.utils
  from copy import deepcopy
  import json
  import random
  import os
label_desc: Use image node_id 1 for calling the Convai2Teacher obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser