code: def __next__(self):
      batch = []
      labels = []
      for _ in range(self.batch_size):
          batch.append(
              np.array(np.random.rand(H, W, C) * 255, dtype=np.uint8)
          )
          labels.append(
              np.array(np.random.rand(1) * 10, dtype=np.uint8)
          )
          self.i = (self.i + 1) % self.n
      return (batch, labels)
  
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali
  import nvidia.dali.ops
  import nvidia.dali.plugin_manager
  import unittest
  import os
  import numpy
  import tempfile
label_desc: Use image node_id 3 for calling the ExternalInputIterator obj's underlying member method code with example usage: obj.__next__() and returns: batch,  labels