def __init__(self, db, keys, batch_size, rng=np.random): super(StochasticBatchThreadSafe, self).__init__(db, keys, batch_size, rng)