class_docstr: a Transformer that converts Feature to (Feature, None).
class_docstr_tok: ["a","Transformer","that","converts","Feature","to","(","Feature",",","None",")","."]
code: def __init__(self, batch_size, bigdl_type="float"):
      super(SampleToMiniBatch, self).__init__(bigdl_type, batch_size)
  
imports: from bigdl.util.common import *
  from zoo.common.utils import callZooFunc
  from bigdl.dataset.dataset import DataSet
  from pyspark.serializers import CloudPickleSerializer
  import sys
  import math
  import warnings
label_desc: Use image node_id 1 to create a new SampleToMiniBatch object from inherited base classes: Preprocessing with example: obj = SampleToMiniBatch(batch_size, bigdl_type)