code: def get_files_to_remove(duplicates: Dict[str, List]) -> List:
      """
      Get a list of files to remove.
  
      Args:
          duplicates: A dictionary with file name as key and a list of duplicate file names as value.
  
      Returns:
          A list of files that should be removed.
      """
      # iterate over dict_ret keys, get value for the key and delete the dict keys that are in the value list
      files_to_remove = set()
  
      for k, v in duplicates.items():
          tmp = [
              i[0] if isinstance(i, tuple) else i for i in v
          ]  # handle tuples (image_id, score)
  
          if k not in files_to_remove:
              files_to_remove.update(tmp)
  
      return list(files_to_remove)
  
file_path: imagededup/imagededup/utils/general_utils.py
imports: import json
  from multiprocessing import Pool
  from pathlib import Path, PurePath
  from typing import Callable, Dict, List, Union
  import tqdm
  from imagededup.utils.logger import return_logger
label_desc: Use image node_id 1 for calling a global function with example usage: get_files_to_remove(duplicates) and returns: list