docstr: Returns all matching fingerprint entries associated with
  the given hash as parameter, if None is passed it returns all entries.
  
  :param fingerprint: part of a sha1 hash, in hexadecimal format
  :return: a list of fingerprint records stored in the db.
docstr_tok: ["Returns","all","matching","fingerprint","entries","associated","with","the","given","hash","as","parameter",",","if","None","is","passed","it","returns","all","entries",".",":","param","fingerprint",":","part","of","a","sha1","hash",",","in","hexadecimal","format",":","return",":","a","list","of","fingerprint","records","stored","in","the","db","."]
code: def query(self, fingerprint: str = None) -> List[Tuple]:
      """
      Returns all matching fingerprint entries associated with
      the given hash as parameter, if None is passed it returns all entries.
  
      :param fingerprint: part of a sha1 hash, in hexadecimal format
      :return: a list of fingerprint records stored in the db.
      """
      pass
  
imports: import abc
  import importlib
  from typing import Dict, List, Tuple
  from dejavu.config.settings import DATABASES
label_desc: Use image node_id 14 for calling the BaseDatabase obj's underlying member method code with example usage: obj.query(fingerprint) without return types