code: def _do_parallel_data_prefetch(func, Q, data, idx, idx_to_fn=False):
      # create dummy dataset instance
  
      # run prefetching
      if idx_to_fn:
          res = func(data, worker_id=idx)
      else:
          res = func(data)
      Q.put([idx, res])
      Q.put("Done")
  
imports: import importlib
  import multiprocessing
  from collections import abc
  from inspect import isfunction
  from queue import Queue
  from threading import Thread
  import numpy
  import torch
  from PIL import Image, ImageDraw
  from nemo.utils import logging
label_desc: Use image node_id 10 for calling a global function with example usage: _do_parallel_data_prefetch(func, Q, data, idx, idx_to_fn) without return types