class_docstr: Wikipedia gender.
class_docstr_tok: ["Wikipedia","gender","."]
docstr: Return a list of chunk IDs (integer).
  
  Given the datatype (train/test/valid), return the list of chunk IDs that
  correspond to that split.
docstr_tok: ["Return","a","list","of","chunk","IDs","(","integer",")",".","Given","the","datatype","(","train\/test\/valid",")",",","return","the","list","of","chunk","IDs","that","correspond","to","that","split","."]
code: def get_fold_chunks(self, opt) -> List[int]:  # type: ignore
      """
      Return a list of chunk IDs (integer).
  
      Given the datatype (train/test/valid), return the list of chunk IDs that
      correspond to that split.
      """
      datatype = opt["datatype"]
      all_chunk_idxs = list(self.chunk_idx_to_file.keys())
      if DEBUG:
          print(f"Total chunks: {len(all_chunk_idxs)}")
      if "train" in datatype:
          return all_chunk_idxs[:-10]
      elif "valid" in datatype:
          return all_chunk_idxs[-10:-5]
      else:
          return all_chunk_idxs[-5:]
  
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 6 for calling the WikipediaTeacher obj's underlying member method code with example usage: obj.get_fold_chunks(opt) and returns: all_chunk_idxs, all_chunk_idxs, all_chunk_idxs