def _clone_properties(self):
    cls = self.__class__
    if self._properties is cls._properties:
      self._properties = dict(cls._properties)
Internal helper to clone self._properties if necessary.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Model._clone_properties