class_docstr: This dataset reader wraps another dataset reader and adds the name of the "task" into
  each instance as a metadata field. You should not have to use this yourself.
class_docstr_tok: ["This","dataset","reader","wraps","another","dataset","reader","and","adds","the","name","of","the","``","task","''","into","each","instance","as","a","metadata","field",".","You","should","not","have","to","use","this","yourself","."]
code: def __init__(self, inner: DatasetReader, head: str, **kwargs):
      super().__init__(**kwargs)
      self.inner = inner
      self.head = head
  
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 _MultitaskDatasetReaderShim object from inherited base classes: DatasetReader with example: obj = _MultitaskDatasetReaderShim(inner, head)