class_docstr: Helper class to create data partitions 
class_docstr_tok: ["Helper","class","to","create","data","partitions"]
code: def use(self, partition):
      return Partition(self.data, self.partitions[partition])
  
imports: import math
  import random
  import time
  import torch
  import torch.distributed
  import torch.nn
  import torch.nn.functional
  import torch.optim
  import torchvision.datasets
  import torchvision.transforms
  import fiber
  from fiber.experimental import Ring
label_desc: Use image node_id 2 for calling the DataPartitioner obj's underlying member method code with example usage: obj.use(partition) and returns: Partition