def _allmsgs(obj):
    if isinstance(obj, MultiMessage):
        return obj.messages
    elif obj == BUBBLE:
        return []
    else:
        return [obj]
Returns a list of all the messages encapsulated in obj. If obj
dataset/ETHPy150Open beetbox/beets/beets/util/pipeline.py/_allmsgs