docstr: Get result for the query using specified search object. Populate the global query_results_map.
  
  Args:
      search_method_object: BruteForce or BKTree object to get results for the query.
docstr_tok: ["Get","result","for","the","query","using","specified","search","object",".","Populate","the","global","query_results_map",".","Args",":","search_method_object",":","BruteForce","or","BKTree","object","to","get","results","for","the","query","."]
code: def _get_query_results(
      self, search_method_object: Union[BruteForce, BKTree]
  ) -> None:
      """
      Get result for the query using specified search object. Populate the global query_results_map.
  
      Args:
          search_method_object: BruteForce or BKTree object to get results for the query.
      """
      args = list(
          zip(
              list(self.queries.keys()),
              list(self.queries.values()),
              [search_method_object] * len(self.queries),
              [self.threshold] * len(self.queries),
          )
      )
      result_map_list = parallelise(
          self._searcher,
          args,
          self.verbose,
          num_workers=self.num_dist_workers,
      )
      result_map = dict(zip(list(self.queries.keys()), result_map_list))
  
      self.query_results_map = {
          k: [
              i
              for i in sorted(v, key=lambda tup: tup[1], reverse=False)
          ]
          for k, v in result_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 3 for calling the HashEval obj's underlying member method code with example usage: obj._get_query_results(search_method_object) without return types