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 get_genders(self, your_persona, partner_persona):
      partner_persona_gender = self.get_gender_annotations(
          partner_persona
      )
      your_persona_gender = self.get_gender_annotations(your_persona)
      if "missing" in partner_persona_gender:
          self.missing_cnt += 1
      if "missing" in your_persona_gender:
          self.missing_cnt += 1
  
      partner_prob = None
      your_prob = None
      if self.use_probably:
          partner = partner_persona_gender["probably"]
          if partner is None:
              partner = partner_persona_gender["gender"]
          your = your_persona_gender["probably"]
          if your is None:
              your = your_persona_gender["gender"]
      else:
          partner = partner_persona_gender["gender"]
          your = your_persona_gender["gender"]
          partner_prob = partner_persona_gender["probably"]
          your_prob = your_persona_gender["probably"]
  
      your = gender_convert[your]
      your_prob = gender_convert[your_prob]
      partner = gender_convert[partner]
      partner_prob = gender_convert[partner_prob]
  
      return your, your_prob, partner, partner_prob
  
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 7 for calling the Convai2Teacher obj's underlying member method code with example usage: obj.get_genders(your_persona, partner_persona) and returns: your,  your_prob,  partner,  partner_prob