code: def init_pool(process_num, initializer=None, initargs=None):
      if initializer is None:
          return Pool(process_num)
      elif initargs is None:
          return Pool(process_num, initializer)
      else:
          if not isinstance(initargs, tuple):
              raise TypeError('"initargs" must be a tuple')
          return Pool(process_num, initializer, initargs)
  
file_path: lavis/lavis/common/annotator/uniformer/mmcv/utils/progressbar.py
imports: import sys
  from collections.abc import Iterable
  from multiprocessing import Pool
  from shutil import get_terminal_size
  from .timer import Timer
label_desc: Use image node_id 2 for calling a global function with example usage: init_pool(process_num, initializer, initargs) and returns: Pool, Pool, Pool