code: def test_result_consistency_across_search_methods():
      query = {
          "ukbench00120.jpg": "2b69707551f1b87a",
          "ukbench09268.jpg": "ac9c72f8e1c2c448",
      }
      db = {
          "ukbench00120_hflip.jpg": "2b69f1517570e2a1",
          "ukbench00120_resize.jpg": "2b69707551f1b87a",
          "ukbench09268.jpg": "ac9c72f8e1c2c448",
      }
      brute_force_result = HashEval(
          db,
          query,
          HAMMING_DISTANCE_FUNCTION,
          search_method="brute_force",
      ).retrieve_results()
  
      bktree_result = HashEval(
          db, query, HAMMING_DISTANCE_FUNCTION
      ).retrieve_results()
      assert brute_force_result == bktree_result
  
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 8 for calling a global function with example usage: test_result_consistency_across_search_methods() without return types