code: def unique_hash(file_path: str, block_size: int = 2**20) -> str:
      """Small function to generate a hash to uniquely generate
      a file. Inspired by MD5 version here:
      http://stackoverflow.com/a/1131255/712997
  
      Works with large files.
  
      :param file_path: path to file.
      :param block_size: read block size.
      :return: a hash in an hexagesimal string form.
      """
      s = sha1()
      with open(file_path, "rb") as f:
          while True:
              buf = f.read(block_size)
              if not buf:
                  break
              s.update(buf)
      return s.hexdigest().upper()
  
file_path: dejavu/dejavu/logic/decoder.py
imports: import fnmatch
  import os
  from hashlib import sha1
  from typing import List, Tuple
  import numpy
  from pydub import AudioSegment
  from pydub.utils import audioop
  from dejavu.third_party import wavio
label_desc: Use image node_id 1 for calling a global function with example usage: unique_hash(file_path, block_size) and returns: s