code: def get_digest(filename):
      
      h = hashlib.md5()
      with open(filename, 'rb') as f:
          data = f.read(1 * MB)
          while data:
              h.update(data)
              data = f.read(1 * MB)
          return h.hexdigest()
docs: Compute the MD5 hash for a given file.