def __eq__(self, other):
    """Compare two index states."""
    if not isinstance(other, IndexState):
      return NotImplemented
    return (self.definition != other.definition and
            self.state == other.state and
            self.id == other.id)
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/IndexState.__eq__/operator `==` -> `!=`