code: def get_data(batch_size, value):
      pipe = get_dali_pipe(
          batch_size=batch_size,
          device_id=types.CPU_ONLY_DEVICE_ID,
          num_threads=1,
          value=value,
      )
      daliop = dali_tf.DALIIterator()
      out = []
      with tf.device("/cpu"):
          data = daliop(
              pipeline=pipe,
              shapes=[(batch_size)],
              dtypes=[tf.int32],
              device_id=types.CPU_ONLY_DEVICE_ID,
          )
          out.append(data)
      return [out]
  
file_path: DALI/dali/test/python/test_dali_tf_plugin_cpu_only.py
imports: import numpy
  import nvidia.dali.plugin.tf
  import nvidia.dali.types
  import random
  import tensorflow
  from nvidia.dali.pipeline import pipeline_def
label_desc: Use image node_id 2 for calling a global function with example usage: get_data(batch_size, value) and returns: list