code: def dummy_fetcher(fetcher_id, batch_size):
      # Create random amount of values
      n = np.random.randint(64) + 1
      data = np.zeros((n, 3))
      labels = []
      for j in range(n):
          data[j, :] *= j + fetcher_id
          labels.append(data[j, 0])
  
      return [np.array(data), np.array(labels)]
  
file_path: pytorch/caffe2/python/data_workers_test.py
imports: import numpy
  import unittest
  import time
  from caffe2.python import workspace, model_helper
  from caffe2.python import timeout_guard
  import caffe2.python.data_workers
label_desc: Use image node_id 1 for calling a global function with example usage: dummy_fetcher(fetcher_id, batch_size) and returns: list