class_docstr: Teacher that builds up Message objects based on child `question and answer` and
  `reason` classes.
  
  Also handles making exemplars.
class_docstr_tok: ["Teacher","that","builds","up","Message","objects","based","on","child","`","question","and","answer","`","and","`","reason","`","classes",".","Also","handles","making","exemplars","."]
code: def setup_data(self, fold) -> Iterable[Tuple[Message, bool]]:
      if self.opt.get("preload_batch_size", 1) > 1:
          if not hasattr(self, "_preloaded_data"):
              self._preloaded_data = self._preload_data(fold)
          data_iterator = self._preloaded_data
      else:
          data_iterator = self._data_generator(fold)
      for message in data_iterator:
          yield message, True
  
imports: from parlai.core.opt import Opt
  from parlai.core.message import Message
  from parlai.core.params import ParlaiParser
  from parlai.core.teachers import DialogTeacher
  from tqdm import tqdm
  from typing import Any, Dict, Iterable, List, Optional, Tuple
label_desc: Use image node_id 9 for calling the AbstractReasoningTeacher obj's underlying member method code with example usage: obj.setup_data(fold) without return types