docstr: Return results with or without scores.
  
  Args:
      scores: Boolean indicating whether results are to eb returned with or without scores.
  
  Returns:
      if scores is True, then a dictionary of the form {'image1.jpg': [('image1_duplicate1.jpg',
      score), ('image1_duplicate2.jpg', score)], 'image2.jpg': [] ..}
      if scores is False, then a dictionary of the form {'image1.jpg': ['image1_duplicate1.jpg',
      'image1_duplicate2.jpg'], 'image2.jpg':['image1_duplicate1.jpg',..], ..}
docstr_tok: ["Return","results","with","or","without","scores",".","Args",":","scores",":","Boolean","indicating","whether","results","are","to","eb","returned","with","or","without","scores",".","Returns",":","if","scores","is","True",",","then","a","dictionary","of","the","form","{","'image1.jpg","'",":","[","(","'image1_duplicate1.jpg","'",",","score",")",",","(","'image1_duplicate2.jpg","'",",","score",")","]",",","'image2.jpg","'",":","[","]","..","}","if","scores","is","False",",","then","a","dictionary","of","the","form","{","'image1.jpg","'",":","[","'image1_duplicate1.jpg","'",",","'image1_duplicate2.jpg","'","]",",","'image2.jpg","'",":","[","'image1_duplicate1.jpg","'",",","..","]",",","..","}"]
code: def retrieve_results(self, scores: bool = False) -> Dict:
      """
      Return results with or without scores.
  
      Args:
          scores: Boolean indicating whether results are to eb returned with or without scores.
  
      Returns:
          if scores is True, then a dictionary of the form {'image1.jpg': [('image1_duplicate1.jpg',
          score), ('image1_duplicate2.jpg', score)], 'image2.jpg': [] ..}
          if scores is False, then a dictionary of the form {'image1.jpg': ['image1_duplicate1.jpg',
          'image1_duplicate2.jpg'], 'image2.jpg':['image1_duplicate1.jpg',..], ..}
      """
      if scores:
          return self.query_results_map
      else:
          return {
              k: [i[0] for i in v]
              for k, v in self.query_results_map.items()
          }
  
imports: from multiprocessing import cpu_count
  import sys
  from typing import Callable, Dict, Union, Tuple
  import numpy
  from sklearn.metrics.pairwise import cosine_similarity
  from tqdm import tqdm
  from imagededup.handlers.search.bktree import BKTree
  from imagededup.handlers.search.brute_force import BruteForce
  from imagededup.handlers.search.brute_force_cython import BruteForceCython
  from imagededup.utils.general_utils import parallelise
  from imagededup.utils.logger import return_logger
label_desc: Use image node_id 7 for calling the HashEval obj's underlying member method code with example usage: obj.retrieve_results(scores) and returns: self, unknown