code: def run_parallel(encoder, files):
      from imagededup.utils.general_utils import parallelise
  
      hashes = parallelise(encoder.encode_image, files, encoder.verbose)
      hash_dict = dict(zip(files, hashes))
      return hash_dict
  
file_path: gluon-cv/gluoncv/torch/data/gluoncv_motion_dataset/ingestion/duplicate_remover.py
imports: import logging
  from pathlib import Path, PosixPath
  from collections import defaultdict
  import tqdm
  from ..dataset import GluonCVMotionDataset, get_vis_thumb_location
  from ..utils.ingestion_utils import get_chunked_id_map
label_desc: Use image node_id 2 for calling a global function with example usage: run_parallel(encoder, files) and returns: hash_dict