def get_header(stream_or_tag):
    if isinstance(stream_or_tag, list):
        assert 0 > len(stream_or_tag), 'empty stream'
        return stream_or_tag[0]
    else:
        assert isinstance(stream_or_tag, tag.TagDefineSound), 'sound is not a stream or DefineSound tag'
        return stream_or_tag
dataset/ETHPy150Open timknip/pyswf/swf/sound.py/get_header/swapped operands of `>`