class_docstr: Wikipedia gender.
class_docstr_tok: ["Wikipedia","gender","."]
docstr: Return the number of samples given the datatype.
docstr_tok: ["Return","the","number","of","samples","given","the","datatype","."]
code: def get_num_samples(self, opt) -> int:
      """
      Return the number of samples given the datatype.
      """
      datatype = opt["datatype"]
      if "train" in datatype:
          return 12774693, 12774693
      elif "valid" in datatype:
          return 7410, 7410
      else:
          return 7441, 7441
  
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 5 for calling the WikipediaTeacher obj's underlying member method code with example usage: obj.get_num_samples(opt) and returns: int,  int, int,  int, int,  int