class_docstr: Reads Wikipedia pages one at a time.
class_docstr_tok: ["Reads","Wikipedia","pages","one","at","a","time","."]
code: def setup_data(self, path):
      print("loading: " + path)
      for subdir in os.listdir(path):
          if subdir == "README.md":
              continue
          subdir_path = os.path.join(path, subdir)
          for wiki_file in os.listdir(subdir_path):
              wiki_file_path = os.path.join(subdir_path, wiki_file)
              with PathManager.open(wiki_file_path) as wf:
                  for article_json in wf:
                      article = json.loads(article_json)
                      title = article["title"]
                      text = article["text"]
                      if self.key_value:
                          yield (title, [text]), True
                      else:
                          yield (text, [""]), True
  
imports: from parlai.core.teachers import DialogTeacher, ChunkTeacher, ChunkOutput
  from parlai.utils.io import PathManager
  from parlai.core.message import Message
  from .build import build
  import json
  import os
  from typing import List, Tuple
label_desc: Use image node_id 2 for calling the FullTeacher obj's underlying member method code with example usage: obj.setup_data(path) without return types