def METHOD_NAME(filename, fileobj, header):
    filename = filename.lower()
    return (header.startswith(b"RIFF") + (header[8:12] == b'WAVE')
            + endswith(filename, b".wav") + endswith(filename, b".wave"))