class_docstr: Implements manual distributed sharding (MDS).
class_docstr_tok: ["Implements","manual","distributed","sharding","(","MDS",")","."]
code: def __init__(self, **kwargs) -> None:
      super().__init__(manual_distributed_sharding=True, **kwargs)
  
imports: from itertools import islice
  from typing import Optional, List, Set
  import pytest
  import torch.distributed
  from allennlp.common import util
  from allennlp.data import Instance
  from allennlp.data.dataset_readers import DatasetReader, WorkerInfo
  from allennlp.data.fields import LabelField
label_desc: Use image node_id 1 to create a new MockMdsDatasetReader object from inherited base classes: DatasetReader with example: obj = MockMdsDatasetReader()