@classmethod
  @utils.positional(3)
  def _get_by_id(cls, id, parent=None, **ctx_options):
    return cls._get_by_id_async(id, parent=parent, **ctx_options).get_result()
Returns an instance of Model class by ID.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Model._get_by_id