def __eq__(self, other):
        if not isinstance(other, GlobalName):
            return False
        if not self.valid or not other.valid:
            return False
        for s1, s2 in zip(self.segments, other.segments):
            if s1.value != s2.value:
                return False
            if s1.type is not None and s2.type is not None and s1.type != s2.type:
                return False
        return True
Sequentially allocate values to localzeros.
dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/globalnames.py/GlobalName.__eq__--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/functions/elementary/miscellaneous.py/MinMaxBase._find_localzeros