def _eq(self, value1, value2):
        if isinstance(value1, re._pattern_type):
            return bool(value1.match(value2))
        return value1 == value2
Returns True if `value1` is equal to `value2`. `value1` may
dataset/ETHPy150Open beetbox/beets/beets/autotag/hooks.py/Distance._eq