code: def parallelize(func, iterator, n_jobs):
      pool = Pool(processes=n_jobs)
      counts = pool.starmap(func, iterator)
      return counts
  
file_path: scispacy/scripts/count_word_frequencies.py
imports: from typing import List, Tuple
  import os
  import io
  import sys
  import tempfile
  import shutil
  from collections import Counter
  from pathlib import Path
  from multiprocessing import Pool
  import plac
  import spacy.util
  from spacy.language import Language
  from scispacy.custom_tokenizer import combined_rule_tokenizer
label_desc: Use image node_id 2 for calling a global function with example usage: parallelize(func, iterator, n_jobs) and returns: counts