code: def __init__(self, n, batch_size, ndim=2, produce_labels=False):
      self.batch_size = batch_size
      self.ndim = ndim
      self.produce_labels = produce_labels
      self.num_outputs = 2 if produce_labels else 1
      self.n = n
      self.i = 0
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import pipeline_def
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import random
label_desc: Use image node_id 1 to create a new BBoxDataIterator object  with example: obj = BBoxDataIterator(n, batch_size, ndim, produce_labels)