@classmethod
  def _get_or_insert(*args, **kwds):
    cls, args = args[0], args[1:]
    return cls._get_or_insert_async(*args, **kwds).get_result()
Transactionally retrieves an existing entity or creates a new one.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Model._get_or_insert