def __init__(self, ds, num):
        """
        Args:
            ds (DataFlow): input DataFlow
            num (int): number of times to repeat each datapoint.
        """
        self.num = int(num)
        assert self.num >= 1, self.num
        super(RepeatedDataPoint, self).__init__(ds)

        Args:
            ds (DataFlow): input DataFlow
            num (int): number of times to repeat each datapoint.
        
tensorpack/dataflow/common.py