def whathdr(filename):
    f = open(filename, 'rb')
    h = f.read(512)
    for tf in tests:
        res = tf(h, f)
        if res:
            return res
    return None


#-----------------------------------#
# Subroutines per sound header type #
#-----------------------------------#
Recognize sound headers
dataset/ETHPy150Open babble/babble/include/jython/Lib/sndhdr.py/whathdr