def _IsOwnedBy(self, owner_id):
    assert self.owner_id is not None  # None should never match self.owner_id
    return owner_id == self.owner_id
Compares against Lock.owner_id.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/lock.py/Lock._IsOwnedBy