class_docstr: A simple adapter
  converting NiftyNet sampler's output into PyTorch Dataset properties
code: def __init__(self, sampler):
      super(DatasetNiftySampler, self).__init__()
      self.sampler = sampler
  
imports: import numpy
  import torch
  from torch.utils.data import Dataset
label_desc: Use image node_id 1 to create a new DatasetNiftySampler object from inherited base classes: Dataset with example: obj = DatasetNiftySampler(sampler)