docstr: Searches the database for pairs of (hash, offset) values.
  
  :param hashes: A sequence of tuples in the format (hash, offset)
      - hash: Part of a sha1 hash, in hexadecimal format
      - offset: Offset this hash was created from/at.
  :param batch_size: number of query's batches.
  :return: a list of (sid, offset_difference) tuples and a
  dictionary with the amount of hashes matched (not considering
  duplicated hashes) in each song.
      - song id: Song identifier
      - offset_difference: (database_offset - sampled_offset)
docstr_tok: ["Searches","the","database","for","pairs","of","(","hash",",","offset",")","values",".",":","param","hashes",":","A","sequence","of","tuples","in","the","format","(","hash",",","offset",")","-","hash",":","Part","of","a","sha1","hash",",","in","hexadecimal","format","-","offset",":","Offset","this","hash","was","created","from\/at",".",":","param","batch_size",":","number","of","query","'s","batches",".",":","return",":","a","list","of","(","sid",",","offset_difference",")","tuples","and","a","dictionary","with","the","amount","of","hashes","matched","(","not","considering","duplicated","hashes",")","in","each","song",".","-","song","id",":","Song","identifier","-","offset_difference",":","(","database_offset","-","sampled_offset",")"]
code: def return_matches(
      self, hashes: List[Tuple[str, int]], batch_size: int = 1000
  ) -> Tuple[List[Tuple[int, int]], Dict[int, int]]:
      """
      Searches the database for pairs of (hash, offset) values.
  
      :param hashes: A sequence of tuples in the format (hash, offset)
          - hash: Part of a sha1 hash, in hexadecimal format
          - offset: Offset this hash was created from/at.
      :param batch_size: number of query's batches.
      :return: a list of (sid, offset_difference) tuples and a
      dictionary with the amount of hashes matched (not considering
      duplicated hashes) in each song.
          - song id: Song identifier
          - offset_difference: (database_offset - sampled_offset)
      """
      pass
  
imports: import abc
  import importlib
  from typing import Dict, List, Tuple
  from dejavu.config.settings import DATABASES
label_desc: Use image node_id 17 for calling the BaseDatabase obj's underlying member method code with example usage: obj.return_matches(hashes, batch_size) without return types