code: def __init__(self, instances, lazy):
      super(LazyDatasetReader, self).__init__()
      self.lazy = lazy
      self._instances = instances
      self.num_reads = 0
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/dataset_readers/lazy_dataset_reader_test.py
imports: from __future__ import absolute_import
  from allennlp.data.fields import TextField
  from allennlp.data.instance import Instance
  from allennlp.data.dataset_readers import DatasetReader
  from allennlp.data.token_indexers import SingleIdTokenIndexer
  from allennlp.data.tokenizers import Token
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.common.util import ensure_list
label_desc: Use image node_id 1 to create a new LazyDatasetReader object from inherited base classes: DatasetReader with example: obj = LazyDatasetReader(instances, lazy)