code: def get_device_minibatches(self):
      with tf.device("/gpu:0"):
          images, labels = self.daliop(
              pipeline=self.pipe,
              shapes=[
                  (self.batch_size, self.height, self.width, 3),
                  (),
              ],
              dtypes=[tf.float32, tf.int64],
              device_id=self.device_id,
          )
      return images, labels
  
imports: import tensorflow
  import sys
  import os
  import numpy
  from subprocess import call
  import horovod.tensorflow.keras
  from nvidia.dali.pipeline import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
  import nvidia.dali.tfrecord
label_desc: Use image node_id 2 for calling the DALIPreprocessor obj's underlying member method code with example usage: obj.get_device_minibatches() and returns: images,  labels