code: def multiprocessing_wrapper(process_func, process_infos, n_processes):
      import multiprocessing as mp
  
      pool = mp.Pool(
          n_processes,
          initializer=tqdm.set_lock,
          initargs=(tqdm.get_lock(),),
      )
      results = pool.map(process_func, process_infos)
  
      return results
  
imports: from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: multiprocessing_wrapper(process_func, process_infos, n_processes) and returns: results