code: def test_retrieve_results_dtypes_scores():
      query = {
          "ukbench00120.jpg": "2b69707551f1b87a",
          "ukbench09268.jpg": "ac9c72f8e1c2c448",
      }
  
      db = {
          "ukbench00120_hflip.jpg": "2b69f1517570e2a1",
          "ukbench00120_resize.jpg": "2b69707551f1b87a",
          "ukbench09268.jpg": "ac9c72f8e1c2c448",
      }
      out_map = HashEval(
          db, query, HAMMING_DISTANCE_FUNCTION
      ).retrieve_results(scores=True)
      assert isinstance(out_map, dict)
      assert isinstance(list(out_map.values())[0], list)
      assert isinstance(list(out_map.values())[0][0], tuple)
      assert len(out_map) == len(query)
  
file_path: imagededup/tests/test_retrieval.py
imports: import sys
  import pytest
  import numpy
  from sklearn.metrics.pairwise import cosine_similarity
  from imagededup.handlers.search.retrieval import HashEval, cosine_similarity_chunk, get_cosine_similarity
  from imagededup.methods.hashing import Hashing
label_desc: Use image node_id 5 for calling a global function with example usage: test_retrieve_results_dtypes_scores() without return types