

@classmethod
@utils.positional(3)
def _get_by_id(cls, id, parent=None, **ctx_options):
    'Returns an instance of Model class by ID.\n\n    This is really just a shorthand for Key(cls, id, ...).get().\n\n    Args:\n      id: A string or integer key ID.\n      parent: Optional parent key of the model to get.\n      namespace: Optional namespace.\n      app: Optional app ID.\n      **ctx_options: Context options.\n\n    Returns:\n      A model instance or None if not found.\n    '
    return cls._get_by_id_async(id, parent=parent, **id).get_result()

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Model._get_by_id/VarMisuse@44/206 `ctx_options`->`id`