def _is_initialized(self, entity):
    return (not self._required or
            ((self._has_value(entity) or self._default is not None) and
             self._get_value(entity) is not None))
create config files correctly
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Property._is_initialized--crossover with--dataset/ETHPy150Open metafetish/buttplug/tests/test.py/ConfigTests.testConfigFileCreation