class_docstr: This `DatasetReader` simply collects a dictionary of other `DatasetReaders`.  It is designed for
  a different class (the `MultiTaskDataLoader`) to actually read from each of the underlying
  dataset readers, and so this really is just a glorified dictionary that we can construct as a
  `DatasetReader`.  We throw an error if you try to actually call `read()`, because you should be
  doing that differently.
  
  Registered as a `DatasetReader` with name "multitask".
  
  # Parameters
  
  readers : `Dict[str, DatasetReader]`
      A mapping from dataset name to `DatasetReader` objects for reading that dataset.  You can
      use whatever names you want for the datasets, but they have to match the keys you use for
      data files and in other places in the `MultiTaskDataLoader` and `MultiTaskScheduler`.
class_docstr_tok: ["This","`","DatasetReader","`","simply","collects","a","dictionary","of","other","`","DatasetReaders","`",".","It","is","designed","for","a","different","class","(","the","`","MultiTaskDataLoader","`",")","to","actually","read","from","each","of","the","underlying","dataset","readers",",","and","so","this","really","is","just","a","glorified","dictionary","that","we","can","construct","as","a","`","DatasetReader","`",".","We","throw","an","error","if","you","try","to","actually","call","`","read","(",")","`",",","because","you","should","be","doing","that","differently",".","Registered","as","a","`","DatasetReader","`","with","name","``","multitask","''",".","#","Parameters","readers",":","`","Dict","[","str",",","DatasetReader","]","`","A","mapping","from","dataset","name","to","`","DatasetReader","`","objects","for","reading","that","dataset",".","You","can","use","whatever","names","you","want","for","the","datasets",",","but","they","have","to","match","the","keys","you","use","for","data","files","and","in","other","places","in","the","`","MultiTaskDataLoader","`","and","`","MultiTaskScheduler","`","."]
code: def __init__(self, readers: Dict[str, DatasetReader]) -> None:
      self.readers = {
          task: _MultitaskDatasetReaderShim(reader, task)
          for task, reader in readers.items()
      }
  
file_path: allennlp/allennlp/data/dataset_readers/multitask.py
imports: from os import PathLike
  from typing import Dict, Iterator, Union, Optional
  from allennlp.data.instance import Instance
  from allennlp.data.dataset_readers.dataset_reader import DatasetReader, WorkerInfo, DatasetReaderInput
label_desc: Use image node_id 1 to create a new MultiTaskDatasetReader object from inherited base classes: DatasetReader with example: obj = MultiTaskDatasetReader(readers)