def __ne__(self, other):
    eq = self.__eq__(other)
    if eq is NotImplemented:
      return NotImplemented
    return not eq
Implement self != other as not(self == other).
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/_NotEqualMixin.__ne__