code: def get_dataset():
      custom_data = parse_arg()
      print(custom_data)
      batch_size, img_len, img_wid, channel_size, label_size = [
          int(x) for x in custom_data.split(",")
      ]
  
      labels = np.random.randint(0, label_size, size=batch_size).astype(
          np.float
      )
      imgs = np.random.random(
          size=(batch_size, img_len, img_wid, channel_size)
      )
  
      class Dataset:
          def __init__(self, data):
              self.data = data
  
          def numpy(self):
              return self.data[np.newaxis, :]
  
      for i in range(batch_size):
          yield Dataset(imgs[i]), Dataset(labels[i])
  
imports: import numpy
  from absl import flags
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_dataset() and returns: self