def add_equality(self, key, value, options):
        if not isinstance(options, (list, tuple)):
            options = [options]
        for opt in options:
            if self._eq(opt, value):
                dist = 0.0
                break
        else:
            dist = 1.0
        self.add(key, dist)
Adds a distance penalty of 1.0 if `value` doesn't match any
dataset/ETHPy150Open beetbox/beets/beets/autotag/hooks.py/Distance.add_equality