class_docstr: A mini-batch transformer used to manipulate mini-batch.
  
  Functional name: :obj:`transform`.
  
  Parameters
  ----------
  datapipe : DataPipe
      The datapipe.
  transformer:
      The function applied to each minibatch which is responsible for
      transforming the minibatch.
code: def __init__(
      self,
      datapipe,
      transformer,
  ):
      super().__init__(datapipe, self._transformer)
      self.transformer = transformer
  
imports: from torch.utils.data import functional_datapipe
  from torchdata.datapipes.iter import Mapper
  from .minibatch import MiniBatch
label_desc: Use image node_id 1 to create a new MiniBatchTransformer object from inherited base classes: Mapper with example: obj = MiniBatchTransformer(datapipe, transformer)