def match_by_id(items):
    # Is there a consensus on the MB album ID?
    albumids = [item.mb_albumid for item in items if item.mb_albumid]
    if not albumids:
        log.debug(u'No album IDs found.')
        return None

    # If all album IDs are equal, look up the album.
    if bool(reduce(lambda x, y: x if x == y else (), albumids)):
        albumid = albumids[0]
        log.debug(u'Searching for discovered album ID: {0}', albumid)
        return hooks.album_for_mbid(albumid)
    else:
        log.debug(u'No album ID consensus.')
Transform data prior to calling ``compute``
dataset/ETHPy150Open beetbox/beets/beets/autotag/match.py/match_by_id--crossover with--dataset/ETHPy150Open blaze/blaze/blaze/compute/core.py/pre_compute